Home

IP addresses should not be Hardcoded

Rule description

  • Hardcoding sensitive information like IP addresses, encryption keys or pass codes may expose them to hackers.If someone can access your runtime files, they may decompile them and expose this info. Leaking information protected by official regulations like GDPR, SOX, HIPPA can lead to major legal consequences.
  • Visual Expert will search for any hard coded IP Address for you to remove this security breach.

 

Non-compliant Code Example

String ls_ip
String ls_ipv6

ls_ip = "127.0.0.1" //Non compliant code(Ip hard coded)
ls_ipv6 = "2001:cdba:0:0:0:0:3257:9652" //Non compliant code(Ip hard coded)

ls_ip = "3.3.3.3" //Non compliant code(Ip hard coded)
ls_ip = testIP("2.2.2.2") //Non compliant code(Ip hard coded)
Return testGlobalIP("1.1.1.1") //Non compliant code(Ip hard coded)
Visual Expert 2020
 VEPBRULE3