Question 217 of 1,152
Threats, Vulnerabilities, and MitigationshardMultiple ChoiceObjective-mapped

Quick Answer

The answer is the world-writable executable upload path, because an attacker can upload or modify server-executable code in a web-accessible directory. This creates a direct path to remote code execution via file upload vulnerability: when a directory like `/var/www/uploads` is writable by the application account, Apache executes PHP files within it, and the app lacks content-type validation, an attacker simply uploads a malicious PHP web shell and triggers it through the browser. On the Security+ SY0-701 exam, this scenario tests your ability to prioritize remediation by identifying the single configuration that enables the full attack chain—many students mistakenly focus on missing content-type validation alone, but without the writable and executable directory, the upload is harmless. Remember the memory tip: “Write, Execute, Upload” – if all three conditions exist, you have a guaranteed RCE path.

SY0-701 Threats, Vulnerabilities, and Mitigations Practice Question

This SY0-701 practice question tests your understanding of threats, vulnerabilities, and mitigations. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A scan of a web server hosting an internal help-desk portal reports these findings: `/var/www/uploads` is world-writable by the application account, PHP files in that directory are executed by Apache, and the app allows users to upload images without content-type validation. Which issue should be remediated first to most reduce the chance of remote code execution?

Clue words in this question

Noticing these words before you look at the options changes how you read each choice.

  • Clue: "first"

    Why it matters: Order matters here. You are being tested on which action comes before the others — not which action is generally useful.

Question 1hardmultiple choice
Full question →

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

World-writable executable upload path, because an attacker could upload or modify server-executable code in a web-accessible directory.

Option C is correct because the combination of a world-writable upload directory, PHP execution in that directory, and no content-type validation allows an attacker to upload a malicious PHP file (e.g., a web shell) and execute it via the web server, achieving remote code execution. This directly exploits the server's trust in user-supplied files and the execution context of Apache, making it the most immediate and severe risk.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Outdated browser plug-in on an admin workstation, because it may expose users to drive-by attacks.

    Why it's wrong here

    An outdated plug-in is a real risk, but it is not the most direct path to server-side remote code execution in this specific web application scenario.

  • Default SNMP community string on a printer in a separate VLAN, because it weakens network monitoring.

    Why it's wrong here

    Default credentials on a printer are a security issue, but they are not the most immediate route to taking over the web server in the stem.

  • World-writable executable upload path, because an attacker could upload or modify server-executable code in a web-accessible directory.

    Why this is correct

    The world-writable, web-executable upload path is the most urgent issue because it creates a direct path to remote code execution. If an attacker can place or alter files in a directory that Apache executes, they may be able to run arbitrary server-side code. The lack of content-type validation increases the chance that a malicious payload will be accepted as a harmless file upload.

    Clue confirmation

    The clue word "first" in the question point toward this answer.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Missing disk encryption on a help-desk laptop, because stolen devices are a common breach source.

    Why it's wrong here

    Missing disk encryption matters for lost or stolen endpoints, but it does not directly enable code execution on the web server described in the scenario.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates may focus on the 'world-writable' aspect alone, but the critical chain is the combination of writable upload path, PHP execution, and lack of content-type validation, which together enable direct remote code execution; other options are valid security concerns but do not address the immediate RCE risk.

Trap categories for this question

  • Scenario analysis trap

    An outdated plug-in is a real risk, but it is not the most direct path to server-side remote code execution in this specific web application scenario.

Detailed technical explanation

How to think about this question

Under the hood, Apache's mod_php or PHP-FPM processes files with .php extensions in the upload directory, and if the directory is world-writable, the www-data or apache user can write files that are then executed. In a real-world scenario, an attacker could upload a file named 'shell.php' containing system commands, then access it via HTTP to execute arbitrary OS commands, effectively owning the server. This is a classic example of an unrestricted file upload vulnerability, often listed in OWASP Top 10 as A04:2021 – Insecure Design.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A developer is choosing between AES-256 (symmetric) and RSA-2048 (asymmetric) for encrypting a large file that will be sent to a partner. Symmetric encryption is fast but requires key exchange; asymmetric is slower but solves the key distribution problem. A hybrid approach — encrypt the file with AES, encrypt the AES key with RSA — is standard. Questions like this test whether you understand when each approach applies.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related SY0-701 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free SY0-701 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this SY0-701 question test?

Threats, Vulnerabilities, and Mitigations — This question tests Threats, Vulnerabilities, and Mitigations — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: World-writable executable upload path, because an attacker could upload or modify server-executable code in a web-accessible directory. — Option C is correct because the combination of a world-writable upload directory, PHP execution in that directory, and no content-type validation allows an attacker to upload a malicious PHP file (e.g., a web shell) and execute it via the web server, achieving remote code execution. This directly exploits the server's trust in user-supplied files and the execution context of Apache, making it the most immediate and severe risk.

What should I do if I get this SY0-701 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Are there clue words in this question I should notice?

Yes — watch for: "first". Order matters here. You are being tested on which action comes before the others — not which action is generally useful.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Keep practising

More SY0-701 practice questions

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This SY0-701 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SY0-701 exam.