View Full CompTIA PT0-003 Exam Dumps and Practice Test Dumps.
Question 241
Which reconnaissance method can reveal the reverse DNS name associated with an IP address?
- PTR lookup
- MX lookup
- TXT lookup
- AAAA lookup
Correct Answer: 1
Explanation
A PTR record is used for reverse DNS resolution, allowing an IP address to be associated with a hostname when such a record exists. During authorized reconnaissance, reverse DNS information can help identify naming conventions, infrastructure roles, or externally visible systems. MX records identify mail servers, TXT records store text-based DNS information, and AAAA records map hostnames to IPv6 addresses. Reverse DNS results should be treated as clues rather than definitive evidence of a system’s current function because DNS records can be outdated or intentionally generic.
Question 242
A tester receives several IP addresses from DNS records but needs to determine which autonomous system announces those addresses. Which information source is most useful?
- HTTP response headers
- ASN registration and routing data
- Browser cookies
- SMTP message headers
Correct Answer: 2
Explanation
Autonomous System Number information can help identify the network or organization associated with advertised IP address ranges. Reviewing ASN registration and routing data during reconnaissance can reveal additional address space that may belong to the same organization. This can improve an authorized tester’s understanding of the external attack surface, although every discovered range must still be confirmed against the engagement scope. HTTP headers, browser cookies, and SMTP message headers may provide useful application or protocol information, but they do not directly identify the autonomous system responsible for routing an IP range.
Question 243
Which scanning technique sends a TCP SYN request and analyzes the response without normally completing the TCP three-way handshake?
- UDP scan
- TCP SYN scan
- TCP connect scan
- ICMP scan
Correct Answer: 2
Explanation
A TCP SYN scan uses the initial SYN portion of the TCP connection process to determine how a port responds. An open port typically responds with SYN/ACK, while a closed port commonly responds with RST. The scanner can generally avoid completing the full TCP connection, making this approach efficient for port discovery. A TCP connect scan completes the connection through the operating system, UDP scanning targets UDP services, and ICMP scanning is generally associated with host discovery rather than TCP port identification.
Question 244
A tester wants to determine whether a web server supports unexpected HTTP request methods that could expose unintended functionality. What should be examined?
- HTTP methods
- DNS TTL values
- MAC addresses
- File metadata
Correct Answer: 1
Explanation
Reviewing supported HTTP methods can reveal whether a web server or application accepts methods beyond those required for normal functionality. Unexpectedly enabled methods may expose administrative or file-management capabilities and therefore deserve further investigation within the authorized scope. Testers should determine whether each method is intentionally required and properly restricted. DNS TTL values relate to caching behavior, MAC addresses identify network interfaces, and file metadata provides information about files rather than HTTP request handling.
Question 245
A web application places an authorization decision entirely in client-side JavaScript. What security principle should the tester investigate?
- Server-side authorization enforcement
- DNS recursion
- Wireless encryption
- Network time synchronization
Correct Answer: 1
Explanation
Authorization decisions should be enforced on the server because client-side controls can potentially be modified or bypassed by users. If an application relies solely on JavaScript to determine whether a user can perform a sensitive action, the server may fail to independently verify authorization. During an authorized assessment, testers should examine whether protected functions validate the user’s privileges on the server. DNS recursion, wireless encryption, and time synchronization are important security topics but do not directly address client-side authorization weaknesses.
Question 246
Which vulnerability occurs when an application processes serialized data from an untrusted source without adequate validation?
- Clickjacking
- Insecure deserialization
- DNS poisoning
- Credential stuffing
Correct Answer: 2
Explanation
Insecure deserialization occurs when an application reconstructs objects or data structures from serialized input without sufficiently validating or restricting that input. Depending on the technology and implementation, unsafe deserialization can contribute to unauthorized actions, data manipulation, or other serious application security issues. During authorized testing, the tester should identify where serialized data crosses trust boundaries and determine whether appropriate integrity and validation controls exist. Clickjacking concerns interface framing, DNS poisoning affects name resolution, and credential stuffing involves reused authentication credentials.
Question 247
A web application dynamically inserts a user-controlled URL into a server-side request. Which vulnerability class should be considered if the server can be persuaded to contact unintended internal resources?
- Server-side request forgery
- Password spraying
- VLAN hopping
- Session fixation
Correct Answer: 1
Explanation
Server-Side Request Forgery, or SSRF, occurs when an application causes the server to make requests based on user-controlled input without adequately restricting the destination. If an attacker can influence those requests toward internal or otherwise unintended resources, sensitive services or information may become accessible through the application’s network position. Authorized testing should focus on confirming whether destination controls and network restrictions work as intended. Password spraying targets authentication, VLAN hopping concerns network segmentation, and session fixation relates to application session management.
Question 248
Which application security weakness occurs when a server includes local files based on insufficiently validated user input?
- Local file inclusion
- Wireless deauthentication
- TCP SYN scanning
- DNS enumeration
Correct Answer: 1
Explanation
Local File Inclusion, or LFI, occurs when an application incorporates or reads files from the server based on user-controlled input without adequate validation. Depending on the application architecture, this may expose sensitive local resources or alter application behavior. During a penetration test, testers should verify the issue within the defined scope and avoid accessing unnecessary sensitive data. Wireless deauthentication affects wireless connectivity, TCP SYN scanning identifies TCP services, and DNS enumeration gathers information about domain infrastructure rather than server-side file inclusion.
Question 249
A tester observes that an application accepts requests from many unrelated origins and exposes sensitive response data through browser-based cross-origin requests. Which security area should be reviewed?
- CORS configuration
- Password hashing
- DNS zone transfers
- Network time protocol
Correct Answer: 1
Explanation
Cross-Origin Resource Sharing, or CORS, controls which origins are permitted to make browser-based requests to web applications and what responses browsers may expose to those origins. An overly permissive configuration can create security concerns when sensitive authenticated resources are accessible across unintended origins. Authorized testers should examine allowed origins, credentials behavior, and response exposure while considering the application’s intended architecture. Password hashing protects stored credentials, DNS zone transfers concern DNS replication, and NTP provides network time synchronization.
Question 250
A tester needs to identify whether an application uses a predictable or weak session identifier. Which area should be assessed?
- Session token entropy
- DNS recursion
- TCP window size
- VLAN tagging
Correct Answer: 1
Explanation
Session token entropy refers to the unpredictability and sufficient randomness of identifiers used to maintain authenticated sessions. Weak or predictable session identifiers may allow unauthorized parties to guess or otherwise obtain valid sessions. During authorized testing, testers can assess token length, randomness, uniqueness, and lifecycle behavior without unnecessarily accessing other users’ data. DNS recursion, TCP window sizing, and VLAN tagging are unrelated network characteristics. Strong session identifiers should be generated using appropriate randomness and should not expose predictable patterns.
Question 251
Which password attack combines words from a dictionary with additional characters, numbers, or predictable substitutions?
- Rainbow table attack
- Hybrid attack
- Password spraying
- Credential stuffing
Correct Answer: 2
Explanation
A hybrid password attack combines dictionary-based words with modifications such as appended numbers, symbols, or common substitutions. This approach reflects how users often create passwords by altering familiar words rather than selecting completely random values. During authorized password auditing, hybrid techniques can help evaluate whether organizational password policies adequately resist common predictable patterns. Rainbow tables use precomputed hash information, password spraying attempts a limited number of passwords across multiple accounts, and credential stuffing relies on credentials obtained from previous compromises.
Question 252
A penetration tester wants to assess whether a password policy prevents users from choosing passwords based on commonly breached credentials. Which control is most relevant?
- Password blocklist
- DNSSEC
- Network segmentation
- Certificate pinning
Correct Answer: 1
Explanation
A password blocklist can prevent users from selecting passwords that are known to be commonly used, compromised, or otherwise unsuitable. This control complements requirements such as appropriate password length and resistance to automated guessing. During an authorized assessment, the tester can review whether the organization checks proposed passwords against a suitable list of known weak credentials without exposing unnecessary user information. DNSSEC protects DNS integrity, network segmentation separates systems, and certificate pinning concerns trust validation in applications.
Question 253
A mobile application stores authentication tokens in an unprotected local file. Which security issue does this represent?
- Insecure local data storage
- VLAN hopping
- DNS cache poisoning
- SMTP misconfiguration
Correct Answer: 1
Explanation
Insecure local data storage occurs when a mobile application stores sensitive information such as authentication tokens, passwords, or personal data without appropriate protection. If another process, user, backup mechanism, or compromised device component can access the stored information, the application’s security may be weakened. During authorized mobile application testing, testers should determine whether sensitive data is appropriately protected using platform-supported secure storage mechanisms. VLAN hopping, DNS poisoning, and SMTP configuration issues involve network or server infrastructure rather than local mobile application data protection.
Question 254
A mobile application rejects a tester’s intercepted connection because it verifies that the server certificate matches a specific expected certificate or key. What control is being observed?
- Certificate pinning
- DNS round-robin
- HTTP compression
- Password spraying
Correct Answer: 1
Explanation
Certificate pinning strengthens TLS trust decisions by requiring an application to recognize a specific certificate or public-key identity rather than relying solely on the device’s general certificate authority trust store. This can make certain interception-based testing techniques ineffective unless the application is deliberately configured for testing. During an authorized assessment, testers should determine whether certificate pinning is implemented correctly and whether its operational design supports secure certificate rotation. DNS round-robin distributes DNS responses, HTTP compression affects content transfer, and password spraying targets authentication.
Question 255
A cloud-hosted application retrieves configuration information from a special service available from within the cloud instance. Which security concern should be assessed?
- Cloud metadata service exposure
- Wireless deauthentication
- DNS PTR resolution
- SMTP banner disclosure
Correct Answer: 1
Explanation
Cloud metadata services can provide instances with information such as temporary credentials, configuration details, or instance-specific data. If an application exposes an unintended path to such services, sensitive information may potentially be accessed through server-side request functionality or other weaknesses. Authorized penetration testing should verify whether metadata access is appropriately restricted and whether applications can reach only the information they legitimately require. Wireless deauthentication, PTR resolution, and SMTP banner disclosure address different technologies and do not directly evaluate cloud instance metadata exposure.
Question 256
A containerized application uses an outdated base image containing known vulnerable packages. Which security practice would best address the underlying issue?
- Regular container image scanning and rebuilding
- Increasing DNS TTL values
- Disabling HTTP compression
- Changing the application’s page title
Correct Answer: 1
Explanation
Container image scanning can identify outdated or vulnerable packages before images are deployed. When vulnerabilities are discovered, rebuilding images from maintained base images and updating affected dependencies helps reduce inherited security weaknesses. Organizations should also establish processes for tracking image versions and removing obsolete images from deployment pipelines. DNS TTL values and HTTP compression do not address vulnerable software inside a container image, while changing a page title has no meaningful security impact. Image security is an important part of assessing modern cloud-native environments.
Question 257
A tester reviews a cloud identity configuration and finds that an application account can modify resources unrelated to its assigned function. Which principle is being violated?
- Least privilege
- Defense through obscurity
- Non-repudiation
- Data compression
Correct Answer: 1
Explanation
The principle of least privilege requires accounts and applications to receive only the permissions necessary to perform their legitimate functions. If a cloud identity can modify unrelated resources, its permissions exceed what the workload requires, increasing the potential impact of credential compromise or application abuse. During an authorized assessment, testers should document excessive permissions and identify the affected roles or policies. Defense through obscurity, non-repudiation, and data compression address different security or technical concerns and do not define appropriate access permissions.
Question 258
Which tool is primarily designed to capture and inspect network packets from a command-line environment?
- tcpdump
- Amass
- John the Ripper
- ffuf
Correct Answer: 1
Explanation
tcpdump is a command-line packet capture and network traffic analysis utility. It can help security professionals examine protocols, communication patterns, and unexpected network behavior during authorized troubleshooting or penetration testing. Amass is focused on attack-surface and DNS reconnaissance, John the Ripper is used for password-hash auditing, and ffuf is commonly used for web content discovery and fuzzing. Packet capture should be performed carefully because captured traffic can contain credentials, session information, or other sensitive data.
Question 259
A web tester wants to discover hidden directories and files by supplying different candidate paths to an application. Which tool is commonly suited to this task?
- ffuf
- tcpdump
- Responder
- Hashcat
Correct Answer: 1
Explanation
ffuf is a web fuzzing utility commonly used to identify hidden directories, files, parameters, and other content by testing candidate values against an authorized target. It can help uncover resources that are not linked from normal application pages. Testers should control request rates and remain within the defined scope to avoid unnecessary service disruption. tcpdump analyzes network traffic, Responder is associated with certain network authentication attacks, and Hashcat performs password-hash recovery and auditing rather than web content discovery.
Question 260
A penetration test identifies a vulnerability that affects a system but has limited practical impact because another security control blocks exploitation. How should the tester document this situation?
- Ignore the vulnerability completely
- Report the vulnerability together with the relevant compensating control and residual risk
- Automatically classify it as critical
- Remove all supporting evidence
Correct Answer: 2
Explanation
A vulnerability should not necessarily be omitted simply because another control reduces its practical impact. The report should describe the underlying weakness, explain the compensating control that limits exposure, and communicate the remaining risk accurately. This gives stakeholders a complete picture of both the vulnerability and the protection already in place. Automatically assigning a critical severity would ignore the mitigating control, while deleting evidence or completely ignoring the finding could prevent future reviewers from understanding the environment and its residual risk.