We observed that your code contains either incorrect, unsafe cleartext protocols, which leads to transmission of sensitive information over a network or communication channel in cleartext, making it vulnerable to interception by attackers.
1
2int exposureofSensitiveInformationNonCompliant()
3{
4 // Noncompliant: insecure protocal is used
5 char* ftp_url = "ftp://anonymous@example.com";
6
7}
1int exposureofSensitiveInformationCompliant()
2{
3 // Compliant: https is used for secured url
4 char* https_url = "https://example.com";
5}