nerdexam
Cisco

300-740 · Question #35

Which common strategy should be used to mitigate directory traversal attacks in a cloud environment?

The correct answer is D. Limit file system permissions. Limiting file system permissions (D) directly counters directory traversal attacks by ensuring that even if an attacker manipulates file path inputs (e.g., using ../ sequences), the process has no OS-level access to read or write files outside its intended scope - making the…

Application and Data Security

Question

Which common strategy should be used to mitigate directory traversal attacks in a cloud environment?

Options

  • AUse anti-cross-site request forgery tokens.
  • BApply the principle of least privilege.
  • CImplement functionality validation.
  • DLimit file system permissions.

How the community answered

(57 responses)
  • A
    5% (3)
  • B
    16% (9)
  • C
    7% (4)
  • D
    72% (41)

Explanation

Limiting file system permissions (D) directly counters directory traversal attacks by ensuring that even if an attacker manipulates file path inputs (e.g., using ../ sequences), the process has no OS-level access to read or write files outside its intended scope - making the attack ineffective regardless of how the path is crafted.

Why the others are wrong:

  • A (Anti-CSRF tokens) protects against cross-site request forgery, where a malicious site tricks a user's browser into making authenticated requests - an entirely different attack vector.
  • B (Principle of least privilege) is a broader security concept that informs permission design but isn't the specific mitigation strategy - it's the philosophy, not the control itself.
  • C (Functionality validation) (input validation) can help but is considered a weak, incomplete defense on its own because attackers can use encoding tricks (%2e%2e%2f, null bytes) to bypass filters.

Memory tip: Think "D for Directory = Disk permissions." If a traversal attack is trying to escape the directory, locking down the file system at the OS level is the last line of defense that stops it cold, regardless of how the path was constructed.

Topics

#Directory Traversal#File System Permissions#Access Control#Cloud Security

Community Discussion

No community discussion yet for this question.

Full 300-740 Practice