nerdexam
CompTIA

PT0-001 · Question #12

A penetration tester executes the following commands: Which of the following is a local host vulnerability that the attacker is exploiting?

The correct answer is A. Insecure file permissions. Insecure file permissions allow a local attacker to read, modify, or execute files beyond their privilege level, enabling privilege escalation or unauthorized access on the local host.

Post-exploitation and lateral movement

Question

A penetration tester executes the following commands:

Which of the following is a local host vulnerability that the attacker is exploiting?

Exhibit

PT0-001 question #12 exhibit

Options

  • AInsecure file permissions
  • BApplication whitelisting
  • CShell escape
  • DWritable service

How the community answered

(20 responses)
  • A
    70% (14)
  • B
    5% (1)
  • C
    15% (3)
  • D
    10% (2)

Why each option

Insecure file permissions allow a local attacker to read, modify, or execute files beyond their privilege level, enabling privilege escalation or unauthorized access on the local host.

AInsecure file permissionsCorrect

When critical files such as scripts, service binaries, or configuration files have overly permissive access controls (e.g., world-writable permissions), a low-privileged attacker can modify them to execute arbitrary code under a higher-privileged context such as root or SYSTEM, making insecure file permissions a classic local privilege escalation vector.

BApplication whitelisting

Application whitelisting is a defensive security control that restricts which programs can execute - it is not a vulnerability being exploited in a local privilege escalation scenario.

CShell escape

Shell escape involves breaking out of a restricted shell environment (such as rbash) to gain a full shell, which is a different technique not centered on file permission weaknesses.

DWritable service

A writable service refers specifically to a service whose binary path can be replaced due to incorrect ACLs on the executable itself - this is a narrower and distinct misconfiguration from general insecure file permissions affecting scripts or config files.

Concept tested: Local privilege escalation via insecure file permissions

Source: https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/09-Test_File_Permission

Topics

#insecure file permissions#local privilege escalation#Linux security#file system

Community Discussion

No community discussion yet for this question.

Full PT0-001 Practice