McAfee-Secured Website

Exam Bundle

Exam Code: SY0-701

Exam Name CompTIA Security+

Certification Provider: CompTIA

Corresponding Certification: CompTIA Security+

CompTIA SY0-701 Bundle $44.99

100% CompTIA SY0-701 Guaranteed Success With Testking Training Materials

Get Real SY0-701 Exam Questions & Expert Verified Answers as Experienced on the Real Exam!

  • Questions & Answers

    SY0-701 Questions & Answers

    1044 Questions & Answers

    The ultimate exam preparation tool, Questions & Answers mirrors the actual SY0-701 exam while allowing you to hone and measure every aspect of your test-taking ability.

  • SY0-701 Video Course

    SY0-701 Video Course

    167 Video Lectures

    SY0-701 Video Course is developed by CompTIA Professionals to help you pass the SY0-701 exam.

    Description

    This course will improve your knowledge and skills required to pass CompTIA Security+ exam.
  • Study Guide

    SY0-701 Study Guide

    1003 PDF Pages

    Developed by industry experts, this 1003-page guide spells out in painstaking detail all of the information you need to ace SY0-701 exam.

CompTIA Security+ (SY0-701) Practice Tests

Satisfaction Guaranteed

Money Back Guarantee

Testking provides hassle-free money back guarantee with our products. That is because we have 100% trust in the abilities of our professional and experience product team, and our record is a proof of that.

99.6% PASS RATE
Total Cost: $194.97
Bundle Price: $149.98

Purchase Individually

  • Questions & Answers

    Questions & Answers

    1044 Questions

    $124.99
  • SY0-701 Video Course

    Video Course

    167 Video Lectures

    $39.99
  • Study Guide

    Study Guide

    1003 PDF Pages

    $29.99

CompTIA SY0-701 Practice Test 42

Question 410

A profile-photo endpoint accepts any file extension and places uploads in a web-executable directory. An attacker uploads a server script and invokes it through a URL. What design flaw enabled execution?

  1. Incorrect ownership permissions on stored profile photos while the upload directory remains nonexecutable.
  2. Unsafe upload validation and executable storage of untrusted files.
  3. A missing anti-CSRF token on the upload form while all uploaded content is stored as nonexecutable media.
  4. Cross-site scripting in a profile caption that executes only in a visitor browser, with uploaded server-side files kept non-executable.

Explanation

Correct Answer

B:

The server failed to restrict content and storage execution context. Validating types and keeping uploads outside executable paths is essential.

Incorrect Answers

A:

File permissions may expose data, but the scenario is server-side execution of an uploaded script. That requires unsafe content handling and an executable upload location.

C:

CSRF defenses affect who can cause an upload; they do not explain why the server executes an uploaded script from a URL-accessible folder.

D:

Browser script injection is distinct from uploading a script that the server later executes from a web-accessible directory. Unsafe upload checks combined with executable storage create the server-side code execution exposure.

Question 411

A web server accepts an old encrypted protocol with known design weaknesses even though modern clients support safer versions. Which vulnerability type should configuration review flag?

  1. Use of deprecated weak cryptographic protocols.
  2. A strong modern authenticated cipher with approved settings.
  3. A certificate-name mismatch while otherwise using an approved modern transport protocol.
  4. A valid server certificate that is nearing renewal while protocol negotiation remains restricted to current versions.

Explanation

Correct Answer

A:

Allowing obsolete versions can expose session security despite the presence of encryption. Administrators should disable unsafe negotiation choices.

Incorrect Answers

B:

Appropriately configured modern transport is the corrective direction rather than the weakness described.

C:

Hostname validation is a distinct TLS authentication concern. The explicitly described weakness is permitting legacy protocol versions with known design defects.

D:

Certificate lifecycle management is important, but a normal upcoming renewal is not evidence that deprecated protocol negotiation is enabled.

Question 412

An application container runs with a writable mount of the host root filesystem. A compromised app inside the container can alter host configuration files. Which misconfiguration is most significant?

  1. Using an old but patched application container base image without any writable host mounts.
  2. Excessive privileged host filesystem access from the container.
  3. A well-scoped read-only application data volume.
  4. Running a container with application-level administrator rights restricted to its own isolated data volume.

Explanation

Correct Answer

B:

The mount crosses an intended isolation boundary and gives application code authority over host files. Restrict mounts and privileges.

Incorrect Answers

A:

Image lifecycle can create vulnerabilities, but the stated host impact comes from granting the container write access to the host root filesystem.

C:

A narrow read-only mount would not permit the observed host configuration changes.

D:

Privileges inside a limited container are not equivalent to a writable host-root mount. The dangerous permission crosses the container-to-host file boundary.

Question 413

A legacy application creates sequential numeric session IDs that can be guessed. An attacker changes an ID in a cookie and reaches another active user session. Which design defect enabled the takeover?

  1. A properly random cryptographically generated session identifier.
  2. A properly invalidated session that cannot be reused after logout.
  3. Predictable session tokens lacking sufficient randomness and binding.
  4. A session cookie with SameSite controls but a strongly random identifier that an attacker cannot predict.

Explanation

Correct Answer

C:

A session identifier must resist guessing and be validated against secure session state. Sequential values expose other users to impersonation.

Incorrect Answers

A:

Unpredictable identifiers would make enumerating other users’ tokens infeasible in the described way.

B:

Reliable logout invalidation reduces stale-session reuse. It does not cause the observed takeover, where guessed sequential identifiers map to other active sessions.

D:

SameSite settings help mitigate some cross-site request risks. The described attacker succeeds by guessing the token value, pointing specifically to inadequate identifier entropy.

Question 414

An application leaves database credentials in a configuration file readable by all local users. A low-privilege account retrieves the secret without exploiting code. What vulnerability is central?

  1. An authentication bypass on the web login that is not involved in reading the file from the local filesystem.
  2. Overly permissive file access controls on sensitive configuration.
  3. A brute-force password attack against the database account instead of reading a stored credential.
  4. Use of an external secret manager enforcing narrow service-account retrieval, instead of a readable local configuration file.

Explanation

Correct Answer

B:

The secret’s confidentiality depends on least-privilege file permissions. Unrestricted read rights disclose credentials to users who do not need them.

Incorrect Answers

A:

The low-privilege user already has ordinary file-read access; the database secret is exposed by overly broad local permissions, not login-bypass code.

C:

Online guessing would submit many candidate passwords. This actor simply reads a plaintext secret from a world-readable configuration file.

D:

A properly controlled secret manager is a mitigation, not the observed root defect. The configured local file currently grants unnecessary reads to ordinary users.

Question 415

A web application evaluates a user-submitted template string with a powerful server template engine. An attacker supplies an expression that invokes unsafe functions on the server. What class of application weakness is indicated?

  1. Client-side HTML injection that changes visual text but is never evaluated by server logic.
  2. Untrusted template text rendered as inert content in the client browser without execution in the server template runtime.
  3. Server-side template injection caused by evaluating untrusted template syntax.
  4. A template-rendering failure that escapes user-supplied expressions and displays them literally.

Explanation

Correct Answer

C:

Template expressions are executed with backend privileges instead of treated as data. Avoiding unsafe evaluation and restricting template capabilities reduces the exposure.

Incorrect Answers

A:

A browser can display attacker-controlled markup without running privileged server functions. The scenario explicitly invokes a server template engine on untrusted expression syntax.

B:

Displaying text without invoking privileged template evaluation is not the same as executing attacker-controlled server template syntax. The observed commands run because untrusted input is interpreted by a powerful server-side engine.

D:

Safe literal output avoids execution. The observed defect is interpreting untrusted template expressions with powerful backend privileges.

Question 416

A service trusts all requests from an internal subnet, allowing any employee workstation to call an API that resets user passwords. Attackers on a compromised desktop misuse the endpoint. What is the underlying weakness?

  1. A correct self-service reset API that confirms the user identity and permits only that account to be modified.
  2. A password-reset endpoint requiring a valid user token but omitting device health checks.
  3. A correctly scoped administrator-role check that rejects ordinary workstation users regardless of subnet.
  4. Improper authorization relying solely on network location.

Explanation

Correct Answer

D:

Internal addressing is not sufficient privilege evidence. Sensitive actions require verified identities and explicit role permissions at the API.

Incorrect Answers

A:

A legitimate self-service endpoint performs per-user authorization. The vulnerable service instead resets arbitrary accounts merely because the caller is on an internal network.

B:

Additional device posture can strengthen control but would not replace checking the caller’s specific authorization to reset other users. Here no meaningful action-level authorization exists.

C:

Such authorization would stop the described misuse. The actual design assumes internal location is enough permission for a high-impact reset action.

Question 417

A sensor records a single host attempting short TCP connections across hundreds of ports on many internal servers in a few minutes. No authorized maintenance window exists. What activity should be investigated?

  1. A legitimate vulnerability scanner inventorying approved hosts under a published assessment scope and window.
  2. Reconnaissance through network port scanning.
  3. An endpoint malware beacon connecting repeatedly to one designated server on a single destination port.
  4. A software deployment job connecting to the same management port across servers on its authorized inventory.

Explanation

Correct Answer

B:

Broad rapid connection attempts across hosts and ports are typical of service discovery; context and approved scanners must be checked before attribution.

Incorrect Answers

A:

Authorized scanning can produce similar network patterns, which is why attribution needs confirmation. The scenario explicitly provides no approved maintenance activity and calls for investigating reconnaissance.

C:

Beaconing often repeats connections to an established destination. The observed rapid sweeps across numerous hosts and ports better match network service enumeration.

D:

Managed deployment can reach many systems, but would normally use a limited expected service set. Sweeping hundreds of ports without a planned window suggests reconnaissance.

Question 418

A login service records tens of thousands of passwords attempted against the same administrator name from a few addresses. Other accounts show normal activity. Which attack pattern is most consistent?

  1. Credential stuffing that tests known leaked username-password pairs across many different accounts.
  2. Password spraying distributed across hundreds of usernames.
  3. Focused online brute-force guessing against one account.
  4. A distributed password spray using a single commonly guessed password across many employee accounts.

Explanation

Correct Answer

C:

High repeated attempts toward one identity differ from spraying a few common guesses across many users. Rate limits and source correlation are relevant.

Incorrect Answers

A:

Credential stuffing replays stolen pairs, commonly over multiple accounts. The scenario shows thousands of password candidates concentrated on one administrator identity.

B:

Spraying usually spreads guesses to avoid per-user lockouts; here the attempts concentrate on a single account.

D:

Password spraying spreads a small number of guesses across identities to avoid per-account thresholds. The repeated guesses against only one administrator are focused brute force.

Question 419

An endpoint records an unapproved process opening the system authentication process memory with unusual read permissions, followed by network connections to a new host. What technique should investigators prioritize?

  1. A process inspecting browser cookie storage files without interacting with the operating system credential process.
  2. An approved operating-system update with verified publisher and expected process behavior.
  3. A kernel integrity monitor reading signed software hashes rather than opening authentication process memory.
  4. Potential extraction of authentication secrets from process memory.

Explanation

Correct Answer

D:

Abnormal privileged access to credential-related memory can indicate dumping; corroborate process provenance and transfer artifacts before declaring compromise.

Incorrect Answers

A:

Browser-cookie theft is a separate possible technique, but the observed abnormal memory access targets an authentication process associated with credential material.

B:

A routine signed update is not sufficient to explain a process making unexpected reads of authentication memory. The suspicious access pattern requires endpoint and credential-theft investigation.

C:

Integrity monitoring can legitimately read file metadata, but it does not explain an unapproved process opening credential-memory pages with unusual permissions.

Question 420

A production server shows an unapproved remote-control service installed after an unusual privileged login. The service is configured for automatic startup. Which incident hypothesis is relevant?

  1. Persistence via an unauthorized remote-access service.
  2. An approved signed remote-support service installed under an authorized change ticket with normal asset-owner attribution.
  3. A business-approved application update with signed change records.
  4. A one-time remote support process run interactively without configuring automatic startup.

Explanation

Correct Answer

A:

A new auto-start management service can maintain attacker access across reboots. Investigate installation provenance and active sessions.

Incorrect Answers

B:

Legitimate support tools can run as background services, but the scenario describes an unapproved service appearing immediately after an unusual privileged login. Its persistence and unauthorized installation warrant incident investigation.

C:

No such approval is present; the suspicious login and new service warrant investigation.

D:

A temporary interactive tool does not match a newly installed automatic service that survives reboots. The latter behavior raises the persistence hypothesis.