CompTIA certification · Exam PT0-003

PT0-003 Mock Exam Page 5

CompTIA PenTest+

Free PT0-003 questions on Attacks and Exploits, each with the answer and an explanation.

20 questions · 37 minutes · free, no sign-up

Attacks and Exploits questions

41–44 of 44 free
Question 41 Choose 2
Which of the following technologies is most likely used with badge cloning? (Select two).
Show answerHide answer

Correct answer: A, B NFC RFID

Explanation

Explanation:

Badge cloning is a physical security attack where an adversary intercepts the wireless signal of an access credential to create an unauthorized duplicate. This process predominantly targets RFID and NFC technologies, which serve as the communication backbone for most physical access control systems (PACS).

Incorrect Options Analysis

Bluetooth (C):
While used for some modern mobile-entry systems, Bluetooth involves complex pairing and encrypted handshakes that are fundamentally different from the simple "read and replicate" nature of badge cloning.

Modbus (D):
This is an application-layer messaging protocol used for communication between devices in industrial control systems (ICS/SCADA). It has no application in physical access badges.

Zigbee (E):
A low-power, wireless mesh network protocol used primarily for IoT devices and home automation sensors, not for credential-based entry.

CAN bus (F):
The Controller Area Network is a specialized bus standard used within vehicles to allow microcontrollers to communicate. It is unrelated to building access badges.

References
CompTIA PenTest+ (PT0-003) Domain 3.0: Physical Security Attacks (3.4).
NIST Special Publication 800-116: Guidelines for the Use of PIV Credentials in Facility Access.
Question 42 Choose 1
A penetration tester finds that an application responds with the contents of the /etc/passwd file when the following payload is sent:

xml
Copy code


]>
&foo;

Which of the following should the tester recommend in the report to best prevent this type of vulnerability?
Show answerHide answer

Correct answer: C Disable the use of external entities.

Explanation

Explanation:

The payload provided is a classic example of an XML External Entity (XXE) injection attack. This vulnerability occurs when an XML parser is configured to process Document Type Definitions (DTDs) and resolve external entities. In this specific scenario, the SYSTEM identifier instructs the parser to fetch the contents of a local URI (file:///etc/passwd) and assign it to the entity &foo;. When the application processes &foo;, it substitutes the entity with the sensitive system file's content, which is then returned in the application's response.

Incorrect Options Analysis

Drop all excessive file permissions (A):
While following the principle of least privilege is a good security practice, it is not the "best" prevention. Restricting permissions on /etc/passwd might break system functionality, and the attacker could still use XXE for other purposes, such as Server-Side Request Forgery (SSRF) or accessing other files the application has permission to read.

Ensure logs are reviewed frequently (B):
Log review is a detective control, not a preventative one. It helps identify that an attack occurred but does not stop the vulnerability from being exploited in the first place.

Implement a WAF (D):
A Web Application Firewall (WAF) is a compensating control. While it can filter known XXE patterns, it can often be bypassed with encoding or alternative XML structures. It addresses the symptom rather than fixing the underlying insecure code configuration.

References

CompTIA PenTest+ (PT0-003) Objective 4.2: Given a scenario, analyze the output of application assessment tools and recommend mitigation.

OWASP Top 10: A05:2021 – Security Misconfiguration (formerly its own category, XML External Entities).
Question 43 Choose 1
During a red-team exercise, a penetration tester obtains an employee's access badge. The tester uses the badge’s information to create a duplicate for unauthorized entry. Which of the following best describes this action?
Show answerHide answer

Correct answer: C RFID cloning

Explanation

Explanation:

The scenario describes RFID cloning, a common physical security attack where a penetration tester captures the unique data stored on a physical access badge and copies it onto a new, unauthorized card. Most modern corporate badges use Radio Frequency Identification (RFID) or Near Field Communication (NFC) to communicate with building readers.

In an RFID cloning attack, the tester uses a specialized hardware device (such as a Proxmark3 or a Flipper Zero) to read the radio frequency signal emitted by the target badge. If the badge uses low-frequency (125 kHz) technology or poorly encrypted high-frequency standards, the device can capture the card's unique identifier (UID). The tester then "writes" this captured data onto a blank, writable RFID chip. Once complete, the duplicate badge is indistinguishable from the original to the building's access control system, allowing the tester to gain entry without triggering an alarm.

Incorrect Options Analysis

Smurfing (A):
This is a type of Distributed Denial of Service (DDoS) attack. It involves sending large amounts of ICMP (ping) traffic with a spoofed source IP address to a network's broadcast address, causing the network to overwhelm the victim's machine with responses. It is unrelated to physical badges.

Credential Stuffing (B):
This is a digital attack where stolen username and password pairs from one data breach are "stuffed" into the login portals of other unrelated services. It relies on the common habit of users reusing passwords across multiple platforms.

Card Skimming (D):
While similar, skimming typically refers to the theft of payment card information (credit or debit cards) during a legitimate transaction. A skimmer is a physical device placed over a card reader (like at a gas pump or ATM) to capture the magnetic stripe data or chip info for financial fraud, rather than facility access.

References
CompTIA PenTest+ (PT0-003) Objective 3.4: Given a scenario, perform physical security attacks.
MITRE ATT&CK Framework: Technique T1122 (Replication through Removable Media/Hardware).
Question 44 Choose 1
A penetration tester gains access to the target network and observes a running SSH server. Which of the following techniques should the tester use to obtain the version of SSH running on the target server?
Show answerHide answer

Correct answer: C Banner grabbing

Explanation

Explanation:

Banner grabbing involves connecting to an open port (e.g., SSH on TCP/22) and reading the service’s initial response. SSH servers typically disclose their software and version in that banner unless manually hardened. Example: SSH-2.0-OpenSSH_8.9p1. This allows the tester to identify vulnerable versions.

Why other options are incorrect

A. Network sniffing
– Passive traffic capture may not see the SSH banner unless the tester initiates a connection (which then becomes banner grabbing). Encryption also hides version details.

B. IP scanning
– Only discovers live hosts and open ports (e.g., “port 22 open”). It does not retrieve service version banners without additional probes (which is still banner grabbing).

D. DNS enumeration
– Maps domain names, subdomains, and DNS records. It provides no information about running SSH services or their versions.

References:

CompTIA PenTest+ PT0-003 Exam Objectives – Domain 2.2 (Information Gathering): “Perform service and port scanning including banner grabbing for fingerprinting.”

Nmap documentation – Version detection (-sV) is a form of banner grabbing.

MITRE ATT&CK T1592.002 – “Gather Victim Host Information: Software” – banner grabbing is a common method.

That's the last free question in Attacks and Exploits

You've seen the free 30% (44 of 148 questions). Full access unlocks every question and full-length PT0-003 mock exams (90 questions, 165 minutes), a different mock on every attempt.

Unlock full mock exam
Full mock exam

Sit the PT0-003 exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real PT0-003 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full PT0-003 mock exam
  • 90questions per mock
  • 165 mintime limit
  • 361questions in the bank
  • Newmock on every attempt