CompTIA SY0-701 Practice Test 25
Question 240
During an authorized penetration test, an approved proof of concept demonstrates access to a staging database containing real customer records. The signed rules of engagement prohibit extracting those records. Which response best demonstrates impact while respecting the scope?
- Export the complete real customer table because a successful exploit automatically grants permission to copy all accessible data
- Extend the test to unrelated production database hosts without contacting the engagement owner because staging access was already approved
- Stop unauthorized data retrieval, retain minimal permitted proof of access, protect evidence, and report the finding within the agreed engagement rules
- Delete all test evidence immediately without reporting the reachable customer records because the database was considered a test system
Explanation
Correct Answer
C:Minimal evidence and prompt notification show the impact while avoiding additional exposure and respecting data-handling limits in the contract. Capture minimal permitted proof of the affected database, stop further collection and report the issue through the secure agreed channel. This establishes impact without turning authorized testing into a confidentiality breach.
Incorrect Answers
A:Demonstrated access establishes a security issue, but test authorization is bounded and does not give blanket permission to extract personal data. Finding the flaw does not expand the tester’s contractual authorization to copy real customer data. Mass extraction would magnify exposure and may violate law or engagement rules.
B:The signed target list and prohibited actions govern the engagement; access to one staging host does not authorize probing unrelated infrastructure. Access to one approved staging target does not authorize scanning unrelated production hosts. Expand scope only through the engagement owner’s written change approval.
D:Silent evidence destruction prevents remediation and does not address the documented customer-data exposure identified during the approved test. Deleting all evidence without reporting would prevent the client from validating and repairing the exposed data path. Protect and retain the evidence required by the agreement.
Question 241
A login service redirects users according to an untrusted returnUrl parameter. A patch rejects lowercase http:// URLs, but testers can still redirect to an attacker hostname by using mixed-case schemes and protocol-relative URLs. Which validation change most directly fixes the weakness?
- Convert the entire untrusted returnUrl to lowercase and then forward to whichever hostname it contains
- Block the string http:// in the raw input and allow every other redirect syntax without interpreting the URL
- Map approved destination IDs to server-side URLs, or parse and allowlist exact permitted scheme, host and port before redirecting
- Hide the returnUrl form field in the browser without changing the server’s redirect destination handling
Explanation
Correct Answer
C:Server-side identifiers prevent an attacker from supplying an arbitrary URL at all, which is preferable where feasible. If a caller can choose a URL, parse it with a maintained URL parser and allow only explicitly approved scheme, host, port and required path, rejecting ambiguous userinfo or protocol-relative forms. Validate the exact value used for the redirect, not a transformed but different string. Allowlisted internal destination IDs avoid free-form untrusted URLs. If URLs are accepted, normalize and parse consistently, reject unexpected schemes and ports, and compare exact permitted hosts before issuing the redirect.
Incorrect Answers
A:Case normalization may prevent one bypass spelling but it does not establish whether the destination belongs to the application’s trusted redirect set. An attacker-controlled valid hostname remains attacker controlled after conversion, and special URL forms may still be misinterpreted. Lowercasing an arbitrary redirect URL does not confine its destination to trusted hosts. A mixed-case bypass may disappear while a differently formatted attacker URL still redirects externally.
B:Filtering a single raw substring ignores alternate casing, encoded characters, protocol-relative URLs and different parsed URL components. Secure handling must validate the actual destination that the redirect API will use, rather than relying on one textual blacklist pattern. A raw substring filter misses protocol-relative paths, encoded schemes and alternative URL syntax. Safe validation must operate on parsed destination components or eliminate external URL input.
D:A hidden form field remains visible and changeable to a client, and the attack can often be performed by constructing a URL request directly. The server must enforce permitted destination targets regardless of how the browser presents or conceals the parameter. A hidden field remains controlled by the client and can be modified in a direct HTTP request. Server-side redirect decisions must not trust browser UI hiding as an authorization control.
Question 242
A vulnerability scanner flags a library as vulnerable based on an outdated service banner, but the administrator shows the vendor's backported security fix is installed. What is the most likely assessment issue?
- A false-positive finding requiring version and patch verification
- Evidence that a newer patch has been deliberately removed
- Confirmed successful remote code execution by an attacker
- Proof that all remaining findings on the host are invalid
Explanation
Correct Answer
A:Backported fixes can remove a weakness while the advertised base software version remains unchanged. Version banners can lag behind a supplier backport in which the vulnerable code was fixed without changing the reported upstream major release. Validate installed package evidence and vendor patch notes before treating the finding as current.
Incorrect Answers
B:The scenario documents an installed fix and does not prove removal of a separate newer patch. A scanner alert alone does not prove the backported fix was uninstalled. Verify the actual patch status and build metadata instead of inferring removal.
C:A banner-only inference is not evidence that code execution or actual compromise occurred. An apparent version match does not establish execution of exploit code. Evidence of successful compromise requires separate logs or forensic indicators.
D:One inaccurate check cannot invalidate unrelated verified vulnerabilities discovered on the same host. One false-positive result does not invalidate every other scan finding. Each candidate vulnerability requires its own version, configuration and exploitability assessment.
Question 243
An unauthenticated scan reports no operating-system patch gaps, yet its account was denied access to installed-package inventory. Which TWO concerns should the reviewer document? Choose TWO.
- No reported findings prove the server contains no vulnerabilities at all
- The uncredentialed scan automatically granted administrator privileges to the scanner
- The scan's missing credentials can reduce visibility into local software and patch state
- A credentialed assessment or authorized manual check is needed to validate the missing data
- The server may be safely excluded from all future vulnerability assessment cycles
Explanation
Correct Answers
C:Without permission to enumerate installed packages, a scanner may miss important host-side vulnerability indicators. Denied access to installed-package records prevents the scanner from checking many operating-system vulnerabilities and local libraries. Record that the resulting coverage is incomplete. A remote banner cannot conclusively reveal all package versions or locally installed vendor security fixes.
D:Approved authenticated inspection provides richer evidence about package versions and applied security fixes. A permitted credentialed scan or manual software inventory can verify the unobserved package versions and patch state. Compare the result with vendor updates rather than relying on a misleading zero. Document the failed assessment coverage in the audit instead of reporting a clean result.
Incorrect Answers
A:An incomplete assessment has limited detection coverage and cannot prove universal absence of flaws. A zero-result scan with missing local inventory does not prove that no vulnerable components exist. Remote observation cannot see every installed patch.
B:Denied inventory access does not imply the scan secretly gained administrative authority. Unauthenticated scanning does not grant operating-system privileges by itself. Privilege failure is a coverage limit, not successful local credentialed assessment.
E:Coverage limitations call for follow-up assessment, not permanent exemption from vulnerability-management responsibilities. Missing coverage is a reason to improve regular assessments, not a justification for permanent exemption. The system’s changes and new disclosed flaws will require later evaluation.
Question 244
A public VPN gateway has a vulnerability with only a moderate numerical base-severity rating, but the exact CVE has been placed on CISA’s Known Exploited Vulnerabilities (KEV) list after confirmed exploitation in the wild. What should drive the remediation plan?
- Defer action permanently because a base rating below Critical proves no exploitation can happen
- Treat KEV as a list of vulnerabilities that have not yet been verified and wait for a theoretical exploit description
- Disable security monitoring until a higher numerical score is published because telemetry could produce false alarms
- Prioritize validated remediation and compromise assessment according to organizational policy and applicable obligations, using confirmed exploitation evidence and gateway exposure
Explanation
Correct Answer
D:Known exploitation changes the probability assessment for an exposed asset and supports prioritizing patching or vendor-approved mitigation. Verify the gateway’s affected software version, follow applicable policy or regulatory timelines, and assess signs of earlier compromise rather than basing the decision solely on a generic score. Prioritize patching or vendor mitigation and assess whether the gateway was already exploited, using KEV and actual service exposure alongside severity. Follow applicable organizational and regulatory due dates rather than treating a Base score as the only input.
Incorrect Answers
A:Base severity summarizes particular technical dimensions and does not establish that real adversaries are absent. A publicly reachable gateway with a known-exploited flaw can warrant urgent remediation even when its generic numerical rating is below the highest category. A moderate severity score may describe generic impact or exploit preconditions, not the observed exploitation of this Internet-facing gateway. Confirmed active exploitation can substantially change organizational priority.
B:The KEV catalog tracks vulnerabilities with evidence of exploitation in the wild rather than purely speculative weakness descriptions. Organizations should validate the affected product/version and available vendor fixes, then evaluate exposure and remediation urgency. The KEV catalog lists vulnerabilities with evidence of exploitation in the wild under published criteria, not purely theoretical candidates. Misclassifying it would delay defensible remediation.
C:Disabling telemetry reduces the ability to detect exploitation or confirm that a remediation worked. A moderate base score is not a sound reason to suppress gateway logs or postpone evidence collection during an active-exploitation concern. Suppressing monitoring removes compromise evidence and offers no risk reduction while attackers target the affected service. Preserve logs, look for exploitation and harden exposure.
Question 245
A developer sees recurring instances of untrusted input changing query syntax across several internally developed services. The security team wants to classify the common coding weakness, not identify one specific publicly disclosed product flaw. Which identifier family is appropriate?
- A CVSS environmental severity score that names the exact source-code anti-pattern responsible for all injections
- A per-server DHCP address-assignment record, because address allocations classify all application source-code errors
- A Common Weakness Enumeration (CWE) category for injection or improper input neutralization, mapped to remediation guidance
- A single CVE number chosen at random even though no distinct published vulnerability has been identified
Explanation
Correct Answer
C:CWE identifiers classify classes of implementation flaws; they can group many separate cases of unsafe query construction without claiming one shared CVE. CWE identifies general weakness classes such as improper neutralization of special elements in a command. It can group recurring injection-prone design patterns and link them to development practices across different services.
Incorrect Answers
A:CVSS provides severity scoring for vulnerabilities, not a taxonomy of underlying coding weakness classes across different implementations. CVSS describes vulnerability severity and impact characteristics; it does not enumerate the family of source-code mistakes across multiple applications. The request is about weakness taxonomy.
B:A DHCP lease identifies network addressing activity and cannot describe a cross-service recurring software-implementation weakness. A DHCP lease binds a network address to a client for a period and says nothing about input sanitization or SQL parser behavior.
D:CVE names individual disclosed vulnerabilities, not a generic class to apply unchanged to unrelated codebases with similar error patterns. CVE identifiers refer to distinct publicly tracked vulnerabilities rather than an arbitrary category for all instances of an injection coding weakness. Without a specific disclosed defect, a CWE label is more appropriate.
Question 246
Two firewalls in a high-availability pair require the same vendor security update. Rebooting both simultaneously would break all customer connectivity; one can forward traffic while the other is upgraded. What remediation sequence best balances security and availability?
- Patch and reboot both units simultaneously without validating the pair's role or session failover behavior
- Defer all updates permanently because a cluster can never be maintained while the service is in production
- Validate high-availability failover and backups, patch the standby device first, verify its health, then fail over and patch the other device in a controlled window
- Disable monitoring, redundancy checks and backup configuration snapshots until both firewalls are updated
Explanation
Correct Answer
C:Updating one peer at a time after confirming platform-specific failover behavior and rollback safeguards reduces the likelihood of complete service loss. Verify backup, synchronization and failover, then update the passive unit and validate it before transferring traffic. Patch the second unit only after successful controlled promotion and service checks, retaining a tested rollback path.
Incorrect Answers
A:Simultaneous reboot removes both forwarding paths and risks an outage that a validated staged procedure could avoid. Rebooting both firewalls at once eliminates the redundancy that could otherwise keep customer flows alive. A controlled sequence should first establish which unit can safely carry traffic.
B:High-availability systems can often be maintained in a controlled sequence; indefinite deferral leaves known exploitable defects in service. Permanent patch deferral leaves a known vulnerability exposed and is not justified by the existence of a cluster. Maintenance planning and staged testing can reduce interruption risk.
D:Suppressing critical state and recovery evidence obscures failures and makes controlled cluster remediation less safe, not more reliable. Suppressing monitoring and backups makes failures harder to detect or reverse. Operational visibility should be heightened, not removed, during a high-availability update.
Question 247
A vendor cannot patch a vulnerable network appliance for four weeks. Which THREE interim measures are reasonable until remediation? Choose THREE.
- Document the temporary exception and approved owner with a patch deadline
- Expose its administrator portal directly to the Internet to reduce help-desk requests
- Monitor relevant exploitation attempts and preserve security alerts and logs
- Suppress all asset inventory records so scanners stop reporting the finding
- Assume the weakness disappears whenever the appliance is rebooted
- Limit exposed appliance services to approved source networks with restrictive upstream rules
Explanation
Correct Answers
A:A time-bounded exception preserves accountable ownership and drives follow-up remediation. A time-bound exception records who accepts residual risk, when a supported fix is expected and which interim protections are required. It does not itself remove the defect, so evidence of other controls remains essential. If the deadline slips, the risk owner must explicitly reconsider the exception and added safeguards.
C:Continuous monitoring helps detect abuse during the documented risk exposure window. These events can justify emergency containment before vendor patching. Log suspicious requests and review exploit indicators so investigators can detect attempted or successful compromise during the four-week exposure window. Preserve records for remediation and incident analysis.
F:Narrowly scoped network restrictions reduce reachability while the permanent vendor fix is unavailable. Upstream allowlists and service minimization can prevent unauthorized sources from reaching the vulnerable interface while normal operations continue. Test exceptions and review access until the patch is installed. Confirm restrictions at both management and data interfaces; overlooking secondary services can leave an exploitable route.
Incorrect Answers
B:Public management access expands the attack path to the already vulnerable device. A public management portal greatly expands who can attempt passwords or exploit the vulnerability. Maintenance convenience is not an acceptable reason to expose a known unpatched administrative service.
D:Removing inventory records conceals the exposure rather than mitigating the underlying technical condition. Hiding inventory records does not alter the appliance or attacker access. It would reduce visibility and prevent later patch verification.
E:Rebooting a vulnerable release does not normally install the missing security correction. Rebooting clears some volatile state but does not necessarily change vulnerable firmware or software code. The flaw persists until a validated mitigation or vendor fix addresses it.
Question 248
A server administrator installs a vendor patch, closes the change ticket and asks security to remove its critical finding. What should happen before closure?
- Run an authorized verification scan or equivalent check and document the result and any remaining exception
- Delete the security incident timeline for this system
- Close the risk without validation because successful package installation is conclusive
- Require the business owner to approve public access to the repaired server
Explanation
Correct Answer
A:Follow-up validation confirms the exploitable condition was corrected and records remaining exposure if it persists. After deploying the patch, confirm the running component version and whether the known vulnerable behavior is still exposed. A credentialed rescan or equivalent direct check should document closure and any residual exceptions.
Incorrect Answers
B:Historical incident records remain valuable even after remediation and should not be erased for convenience. Deleting incident history removes evidence of prior exploit attempts and does not validate the repair. Preserve relevant logs under approved retention.
C:An installation status alone may not prove the vulnerable running component was replaced or restarted. Package installation may fail silently or leave a service running an old binary. Closure requires a check of the effective system state, not just a successful installer status.
D:Patch closure does not require opening new public network paths to the workload. Public access authorization is unrelated to whether the vulnerability was remediated. Granting more external reachability could increase exposure before verification is complete.
Question 249
A weekly remediation report lists the count and age of unpatched critical findings, affected owners and exceptions. What is the report's principal operational purpose?
- Replace the technical task of validating remediations on hosts
- Eliminate patch schedules by removing due dates from all tickets
- Expose which risks are overdue, who owns them and whether remediation trends are improving
- Prove that every scanner signature is unquestionably accurate
Explanation
Correct Answer
C:Finding age, accountability and exception state help teams prioritize and track risk reduction over time. Comparing open findings, their severity, ownership and age shows whether treatment is keeping pace with new exposure. The report informs escalation and resource allocation rather than serving as proof that each item is fixed.
Incorrect Answers
A:A trend dashboard does not install patches or check the resulting service behavior. Risk dashboards support management but cannot substitute for host-level rescanning or validating that a patch is actually effective. Technical evidence must close each finding.
B:Removing schedules weakens remediation governance and makes overdue exposure difficult to identify. Removing due dates eliminates accountability and makes escalating overdue issues harder. Remediation planning needs owners, priority and expected completion dates.
D:Scanners can produce inaccurate findings that still require technical validation. Corroborate findings with configuration, version and exploitability evidence. Scanner signatures can generate false positives or miss assets. A report counting their findings does not certify every underlying detection result as correct.
Question 250
A SIEM detects repeated failed SSH logins on three hosts followed by a successful privileged sudo action from one source. Which investigation approach best identifies a possible attack sequence?
- Review only each host's disk capacity and ignore identity logs
- Delete all failed-login logs as soon as a successful login appears
- Correlate authentication, source IP, host and privilege-escalation events on a common timeline
- Suppress the successful sudo event because successful activity can never be suspicious
Explanation
Correct Answer
C:Event correlation can link failed attempts to a subsequent successful identity and privileged action. Normalize timestamps, then link source addresses, principals, destinations and sudo logs to determine whether repeated guesses preceded privilege acquisition. Correlation establishes a defensible investigation lead, not automatic proof of malicious intent.
Incorrect Answers
A:Disk capacity alone does not reveal the sequence of authentication failures and later privilege use. Disk capacity is useful for resource health, but it cannot link unsuccessful SSH attempts to a later privileged command. The relevant evidence involves identity and activity.
B:Discarding failed attempts removes evidence of password guessing and attacker progression. Retain preceding failure patterns when building a login timeline. Failed sign-ins may reveal the guessing sequence and source before a successful compromise. Removing them destroys the chronology required for correlation.
D:A privileged event can be the decisive post-compromise activity and warrants contextual investigation. A successful privileged command can be exactly the suspicious event following many failures. The investigator should verify its authorization rather than dismissing it because the system executed it.