Question

Web Server Internal IP Address/Internal Network Name Disclosure Vulnerability

I got McAfee vulnerability scan result. Don’t know how to fix this issue

Some Web servers contain a vulnerability giving remote attackers the ability to attain your internal IP address or internal network name. An attacker connected to a host on your network using HTTPS (typically on port 443) could craft a specially formed GET request from the Web server resulting in a 3XX Object Moved error message containing the internal IP address or internal network name of the Web server. A target host using HTTP may also be vulnerable to this issue. QID Detection Logic: The remote check for the web server internal IP address sends a HTTP GET request to the target web server. The QID is flagged if a “Content-location:” header or a 3xx redirect address in an HTTP response contains an RFC1918 IP address. PCI DSS 3.2 requirement 1.3.7 “do not disclose private IP addresses and routing information to unauthorized parties”. This is an “automatic failure” per ASV Program Guide 6.3.3, #4 (page 32).

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello,

In case you are using Plesk, you can follow the steps here:

  • Create the file /etc/sw-cp-server/conf.d/server-name-plesk.inc:
touch /etc/sw-cp-server/conf.d/server-name-plesk.in
  • Edit the file and add the following content:
server_name example.com;
server_name_in_redirect on;
  • Finally restart the sw-cp-server service:
service sw-cp-server restart

[Source](https://support.plesk.com/hc/en-us/articles/360012075299--BUG-PCI-compliance-scan-shows-a-warning-CVE-2000-0649

I believe that to fix this you can just define your server name in your Nginx or Apache Vhost to match your domain name.

Best,

Bobby