强化扫描问题经常被滥用:对getHostName()和getLocalHost()进行身份验证

时间:2019-02-22 13:53:06

标签: authentication fortify

我们对代码进行了强化扫描,并发现了问题
often misused:authetication -The information returned by the call to getHostName() is not trustworthy

这是代码:

String hostname=InetAddress.getLocalHost().getHostName();
InetAddress ip=InetAddress.getLocalHost();

0 个答案:

没有答案