2

My machines routinely get scanned by Qualys and other scanners that report my supported and patched version of php as wildly out of date (even though they're patched quarterly, I get flagged on ancient CVE's for php and apache). I'm rather sick of even advertising that I've got php enabled on these machines. How do they know it's enable if they don't have an agent on my devices?

Is there some hidden page that I can block or a header from being returned?

I have 'expose_php = On' in my php.ini, I'm guessing I can turn that off, but I don't see what it changes because I don't see what I've seen as the expected "powered by php" message when I do a curl -I against this machine.

I'd also like to not advertise any other modules I may or may not have enabled in apache.

  • There are similar questions like this here. security.stackexchange.com/questions/204793/… and security.stackexchange.com/questions/52596/…, for instance – schroeder May 15 at 14:34
  • Have you tried fixing the underlying problem? – MechMK1 May 15 at 14:42
  • @MechMK1 working on upgrading the platform (and not using php any more) but there is no underlying problem, it's the scanners that need to be tuned. We patch quarterly but still get flagged on 4 year old CVE's because the scanners only look at the major and maybe the minor version numbers. – Peter Turner May 15 at 15:08
  • 4
    If you can say for sure that a scanner is giving you a false positive, then you can ignore those results. Automated scanners will always have false positives, along with false negatives. Scanners are continuously updated to reduce false positive rates, but they will never be perfect. – MechMK1 May 15 at 15:40
  • @mech I can ignore those results, but I can't convince non-technical people and people who are apprehensive about having my tools in their environment to ignore them very well. It's getting to the point that every time I deploy tools to a semi-security minded customer I get a list of 200 CVE's I need to vet. This is what I'm asking about. I want to know what scanners are hitting to determine that I'm running such-and-such a version of PHP. – Peter Turner May 15 at 18:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.