Home

Using hardcoded IP addresses is security-sensitive

Rule description

  • Using hardcoded IP addresses is security-sensitive

 

Non-compliant Code Example

DECLARE @ip4Address varchar(15);
DECLARE @ip6Address varchar(20);
SET @ip4Address = '192.168.0.1'; --Non compliant code (Using hard coded IP address)
SET @ip6Address = '1425:123:4500:ee3d:7801:a9ed:2acb:25c7' --Non compliant code (Using hard coded IP address)
Visual Expert 2020
 VETSQLRULE45