nerdexam
CompTIA

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.

Vulnerability discovery and analysis

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)
  • A
    8% (3)
  • B
    3% (1)
  • C
    5% (2)
  • D
    84% (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.

ATransition the application to another port.

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.

BFilter port 443 to specific IP addresses.

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.

CImplement a web application firewall.

A web application firewall inspects HTTP/S traffic and cannot close or protect arbitrary high-numbered ports used by non-web services.

DDisable unneeded services.Correct

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

#attack surface reduction#service hardening#port security#remediation recommendations

Community Discussion

No community discussion yet for this question.

Full PT0-001 Practice