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 41

Question 400

A trustworthy vendor release service is infiltrated, allowing attackers to distribute a malicious library update to customers who use standard automated builds. Which attack entry pattern is illustrated?

  1. Direct compromise of a downstream customer’s build account through targeted phishing.
  2. Supply-chain compromise through a trusted dependency channel.
  3. Credential stuffing against customers’ software repository logins using exposed user passwords.
  4. An unapproved browser extension installed separately by one downstream customer.

Explanation

Correct Answer

B:

Attackers exploit the organization’s reliance on vendor packages, reaching downstream customers without directly attacking each one.

Incorrect Answers

A:

Customer-account phishing would attack each customer directly. Here the upstream vendor’s common release channel was infiltrated and distributed the same malicious dependency to trusting consumers.

C:

Credential stuffing abuses reused credentials at customer endpoints, whereas this case involves modification of an upstream release that automated builds then consumed.

D:

A local browser extension could be malicious, but it does not explain identical trojanized vendor library updates reaching customers through the shared release channel. The common upstream supplier is the entry point.

Question 401

A browser displays an alarming support warning instructing users to call a toll-free number and install a remote-control utility. The support number is not connected to the device vendor. What is the likely entry vector?

  1. A genuine endpoint protection alert linked to a verified enterprise help-desk article that requires no unsolicited phone call.
  2. Tech-support scam using scareware and remote-control persuasion.
  3. A legitimate support notice directing users to confirm an update through the company’s published service desk without installing remote software.
  4. A managed remote-assistance session initiated from a verified corporate support ticket with explicit user approval.

Explanation

Correct Answer

B:

The pop-up creates urgency to induce user-installed remote access, bypassing ordinary authorization checks.

Incorrect Answers

A:

Managed alerts can give legitimate instructions, but this browser page directs users to an unrelated phone number and new remote-control software.

C:

A verifiable support notice is different from a scareware page that pressures users to call an attacker number and install remote-control tools. The latter behavior is a tech-support scam.

D:

Authorized assistance follows a trusted support workflow. The alarming pop-up instead pushes victims into an attacker-controlled call and tool installation.

Question 402

An intruder follows an employee through a badge door while carrying parcels, avoiding the need to present credentials. Which attack method bypassed the physical boundary?

  1. A stolen physical badge used by an intruder to authenticate at the entrance reader.
  2. An authorized user temporarily handing a visitor a registered spare access card after identity screening.
  3. Tailgating or piggybacking through authorized entry.
  4. A remote attacker cloning an RFID badge and presenting it directly to the door reader.

Explanation

Correct Answer

C:

The attacker relied on an employee opening the controlled door and exploited social courtesy to enter without independent authorization.

Incorrect Answers

A:

Credential theft is another physical entry threat, but the scenario says the person presented no badge and passed behind an employee whose credentials were accepted. The operative bypass is tailgating or piggybacking, not a stolen credential transaction.

B:

A visitor-card program can grant entry after verification, but the intruder in this case presented no credential and relied on following someone through the door.

D:

Cloned badges can bypass a separate physical-control weakness, but the person described did not use a badge; entry followed an authorized employee.

Question 403

An attacker leaves a voicemail pretending to be a bank fraud investigator and directs an employee to call a number printed in the message. During the call the attacker requests an account recovery code. Which technique is used?

  1. Voice phishing built around a fraudulent callback pretext.
  2. A normal authorized password reset completed through the official service.
  3. A genuine bank-security callback whose destination number the employee obtains independently from published bank records.
  4. Text-message phishing that sends a malicious URL directly to the phone without any voice conversation.

Explanation

Correct Answer

A:

A caller-created support story moves the target into an attacker-controlled conversation to obtain authentication secrets.

Incorrect Answers

B:

The number was supplied by the suspicious message rather than independently verified support channels.

C:

An independently verified bank contact is a legitimate method of checking a warning. Here the number was supplied inside a suspicious voicemail and the caller posed as an investigator, creating a voice-phishing pretext.

D:

SMS phishing uses text delivery, while this case uses a voicemail callback and spoken pretext to collect a recovery code. The interaction is vishing.

Question 404

A developer accidentally opens an unauthenticated debug console on a public server. Internet scans discover the port and issue commands. What should be categorized as the attack surface?

  1. An authenticated production API endpoint that permits only documented low-privilege customer requests.
  2. A secured internal management gateway accessible only after approved administrator authentication and device checks.
  3. The reachable debugging interface lacking access control.
  4. A private debug console that requires company VPN authentication before access.

Explanation

Correct Answer

C:

Administrative development endpoints exposed publicly give adversaries a direct entry point into privileged application functions.

Incorrect Answers

A:

An exposed interface may still need protection, but the uncontrolled administrative console accepting unauthenticated commands is the specific entry surface in this scenario.

B:

That gateway imposes access conditions absent from the publicly reachable debugging console. It is not the exposed attack surface under investigation.

D:

An authenticated internal management interface would have a different exposure boundary. This console is publicly reachable without authentication, letting external scanners send privileged commands.

Question 405

A cloud web service accepts a user-supplied image URL and fetches it from the server. An attacker supplies a link to an internal metadata endpoint and the server returns credential information. Which vulnerability enabled the request?

  1. Client-only cross-site scripting.
  2. Client-side script injection in an image caption rendered by the visitor browser, without any server fetch to internal metadata.
  3. An overly broad inbound firewall policy that does not authorize server-originated requests to the metadata service.
  4. Server-side request forgery from unvalidated destination URLs.

Explanation

Correct Answer

D:

The application is induced to make a server-originated request into an otherwise inaccessible internal address. Destination validation and egress restrictions are relevant controls.

Incorrect Answers

A:

The sensitive request originates from the backend server rather than executing script in a victim browser.

B:

Browser XSS can be dangerous but would execute in the visitor client, not use the application server to request a protected metadata address. Server-side URL fetching is the trust boundary exploited in SSRF.

C:

Inbound reachability can create other risks, but it does not explain why the application fetched an attacker-selected internal URL. The server-side fetch of an untrusted destination is the core SSRF weakness.

Question 406

A signed-in user visits a hostile site whose page causes their browser to submit a hidden transfer request to the user’s banking application. The application checks the session cookie but not request origin. What weakness is exploited?

  1. Cross-site request forgery against an authenticated browser session.
  2. Session fixation in which the attacker first chooses a predictable session identifier for the victim.
  3. A reflected cross-site scripting flaw executing attacker code from the bank’s own origin.
  4. A cross-origin read restricted by the browser’s same-origin policy, with no state-changing request sent.

Explanation

Correct Answer

A:

The victim browser supplies valid session credentials to an action the user did not intentionally authorize. Anti-CSRF tokens and origin checks help prevent the abuse.

Incorrect Answers

B:

Session fixation depends on controlling the victim’s session ID. Here an attacker forces a state-changing request from the already-authenticated browser without controlling the session identifier.

C:

XSS can create related risks, but the observed mechanism is a cross-site form submission carrying valid session cookies, with no malicious bank-origin script needed.

D:

The scenario explicitly says the transfer request is submitted and processed. Restricting response reads alone does not stop CSRF when the server trusts cookies without request-intent validation.

Question 407

A maintenance web form passes a hostname directly into a shell command string. Crafted input adds another command that runs under the service account. Which vulnerability class is involved?

  1. A path-traversal flaw that selects another file but never invokes shell syntax.
  2. Server-side request forgery that asks the backend to fetch a URL but never constructs a command line.
  3. A command argument quoting error that rejects malformed hostnames but never executes additional commands.
  4. Operating-system command injection through untrusted command construction.

Explanation

Correct Answer

D:

Untrusted text became shell syntax instead of a validated hostname argument. Avoid shell construction and use safe APIs with allowlisted inputs.

Incorrect Answers

A:

Path traversal manipulates file-system paths, while the observed vulnerability executes a second operating-system command after metacharacters are appended to an input passed to a shell.

B:

SSRF can reach unintended destinations, but the described injection uses a shell command string and runs attacker-added operating-system commands under the service identity.

C:

Rejecting malformed arguments is different from interpreting untrusted text as executable shell syntax. The evidence says an attacker-supplied second command ran, which is OS command injection.

Question 408

An account portal accepts a `next` parameter and redirects users to any supplied internet address after login. Phishers use a legitimate portal URL that forwards victims to a credential-harvesting page. What defect is central?

  1. Unvalidated open redirect to an attacker-controlled destination.
  2. A malicious external link that users click directly without any redirection by the legitimate portal.
  3. A reflected script-injection defect that runs JavaScript inside the portal instead of redirecting to an outside site.
  4. A session-fixation issue in which the attacker supplies a known session identifier before authentication.

Explanation

Correct Answer

A:

The application treats external redirect targets as trustworthy. Restricting destinations to approved paths or hosts limits this phishing bridge.

Incorrect Answers

B:

Direct phishing links can deceive users, but the reported defect is the trusted portal accepting an unchecked next destination and redirecting authenticated visitors. That unvalidated redirection is the application weakness.

C:

XSS and open redirects can both support phishing, but this portal’s direct defect is accepting an arbitrary URL as the post-login redirect destination.

D:

Session fixation manipulates the authentication session; it is not required for this attack. The portal’s unsafe next-URL handling is what forwards users to the attacker page.

Question 409

A malicious page places a legitimate expense-approval interface inside an invisible frame beneath a fake button. Users click the apparent button but trigger the real approval. Which weakness is illustrated?

  1. Cross-site request forgery by sending a hidden approval request using the victim’s cookies without framing the real UI.
  2. A reflected input-validation failure that injects unexpected database syntax into approval request parameters.
  3. A stored cross-site script that changes visible approval text inside the application itself.
  4. Clickjacking enabled by framing of a sensitive interface.

Explanation

Correct Answer

D:

The attacker tricks user interaction by visually overlaying content. Framing protections and deliberate confirmation of high-impact actions reduce exposure.

Incorrect Answers

A:

CSRF forges a request on the victim’s behalf. Here the actual user click is visually redirected into a framed legitimate approval control, which is clickjacking.

B:

Injection affects how the server parses data or commands. The shown weakness is a misleading browser overlay that causes a real button click through an invisible frame.

C:

Script injection can alter an application interface, but the described attack overlays a legitimate application in an invisible frame and steals the user click. Anti-framing controls address that UI redress path rather than stored scripts.

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.