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).
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
In case you are using Plesk, you can follow the steps here:
/etc/sw-cp-server/conf.d/server-name-plesk.inc:touch /etc/sw-cp-server/conf.d/server-name-plesk.in
server_name example.com;
server_name_in_redirect on;
sw-cp-server service:service sw-cp-server restart
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.