PT0-001 · Question #14
A penetration tester observes that several high-numbered ports are listening on a public web server. However, the system owner says the application only uses port 443. Which of the following would…
The correct answer is D. Disable unneeded services. If the server should only use port 443, then high-numbered ports represent unneeded services that should be disabled to eliminate unnecessary attack surface.
Question
A penetration tester observes that several high-numbered ports are listening on a public web server. However, the system owner says the application only uses port 443. Which of the following would be BEST to recommend?
Options
- ATransition the application to another port.
- BFilter port 443 to specific IP addresses.
- CImplement a web application firewall.
- DDisable unneeded services.
How the community answered
(38 responses)- A8% (3)
- B3% (1)
- C5% (2)
- D84% (32)
Why each option
If the server should only use port 443, then high-numbered ports represent unneeded services that should be disabled to eliminate unnecessary attack surface.
Moving the application to a different port is security through obscurity and does nothing to close the unneeded high-numbered ports that are already listening.
Restricting port 443 to specific IP addresses would block legitimate users from the application and does not address the other open ports on the server.
A web application firewall inspects HTTP/S traffic and cannot close or protect arbitrary high-numbered ports used by non-web services.
If the application legitimately requires only port 443, any other listening ports indicate services that are running without a business justification, directly violating the principle of least functionality. Disabling those services removes the exposure entirely rather than filtering or obscuring it. This is the most effective recommendation because it eliminates the attack vector at its source instead of trying to manage it around the edges.
Concept tested: Attack surface reduction by disabling unneeded services
Source: https://csrc.nist.gov/publications/detail/sp/800-123/final
Topics
Community Discussion
No community discussion yet for this question.