CompTIA PenTest+ (PT0-003) & CEH v13 — Engagement Scoping, Recon & Web/API Security
Exam-focused flashcards for CompTIA PenTest+ (PT0-003) and EC-Council CEH v13 covering the 5 official PT0-003 domains, MSA/SOW/RoE legal scoping, passive OSINT, Nmap scanning flags, SQLi, XSS, SSRF (IMDSv1 vs. IMDSv2), BOLA/IDOR, JWT security, deserialization, OWASP LLM01 prompt injection, and CVSS v4.0 reporting.
- Category
- Offensive Security, Privacy/AI Governance, Enterprise Architecture & Cloud Data/AI — CompTIA PenTest+ (PT0-003) & Linux+ (XK0-006), CEH, IAPP CIPP/AIGP (EU AI Act), TOGAF 10, Fabric DP-700 & Azure AI-102
- Level
- basic
- Languages
- en → en
- Cards
- 32
- Markdown
- CompTIA PenTest+ (PT0-003) & CEH v13 — Engagement Scoping, Recon & Web/API Security (.md)
Flashcards (32)
| # | Front (Term / Question) | Back (Definition / Answer) | Example | Multiple-Choice Options |
|---|---|---|---|---|
| 1 | Why is SNMPv1/v2c with default community strings ('public'/'private') a critical finding compared to SNMPv3? | SNMPv1/v2c sends community strings in cleartext, whereas SNMPv3 authPriv enforces authenticated, encrypted access. | ||
| 2 | What are the five sequential ethical hacking phases defined in the EC-Council CEH v13 methodology? | Reconnaissance, Scanning, Gaining Access, Maintaining Access, and Clearing Tracks (Reporting/Cleanup). | ||
| 3 | What are the five official exam domains and percentage weights on CompTIA PenTest+ (PT0-003)? | Engagement Mgmt (13%), Recon & Enum (21%), Vuln Discovery (17%), Attacks & Exploits (35%), Post-Exploitation (14%). | ||
| 4 | What are the distinct functions of the Nmap -sV and -Pn flags during service enumeration? | -sV probes open ports to fingerprint service versions, while -Pn skips host discovery and scans ICMP-blocking hosts. | ||
| 5 | What flaw causes the JSON Web Token (JWT) 'alg: none' vulnerability, and how is it fixed on the server? | Libraries trusting the client's JWT header accept unsigned tokens; enforce a strict server-side algorithm allowlist. | ||
| 6 | How does passive OSINT reconnaissance differ operationally from active reconnaissance during an engagement? | Passive OSINT queries public records (WHOIS, CT logs, Shodan) without sending packets directly to target infrastructure. | ||
| 7 | In the Nmap Scripting Engine (--script), why must testers distinguish the 'safe' category from 'intrusive' or 'dos'? | 'Safe' NSE scripts avoid crashing services, whereas 'intrusive' or 'dos' scripts risk outages or RoE violations. | ||
| 8 | How do SAST, DAST, and SCA differ in vulnerability discovery across the software development lifecycle? | SAST inspects static source code, DAST tests running apps externally, and SCA audits third-party dependency CVEs/SBOMs. | ||
| 9 | How does the JWT RS256-to-HS256 algorithm confusion vulnerability compromise token verification? | A misconfigured verifier switches from asymmetric RS256 to symmetric HS256 using its public RSA key as the HMAC secret. | ||
| 10 | Why is untrusted object deserialization hazardous, and what architectural remediation is recommended? | Reconstructing untrusted serialized objects can invoke dangerous class gadget chains; use schema-validated data-only JSON. | ||
| 11 | What are the maximum item count, time limit, and passing score for the CompTIA PenTest+ (PT0-003) certification exam? | Up to 90 multiple-choice and performance-based questions in 165 minutes, requiring 750/900 to pass. | ||
| 12 | Why does an Nmap UDP scan (-sU) frequently report ports as open|filtered and run much slower than TCP scans? | Open UDP ports rarely send responses, and OS kernels rate-limit the ICMP Type 3 Code 3 Port Unreachable replies. | ||
| 13 | How does AWS Instance Metadata Service Version 2 (IMDSv2) architecturally mitigate SSRF credential theft? | IMDSv2 requires a session-oriented HTTP PUT token request and defaults the IP packet hop limit (TTL) to 1. | ||
| 14 | Why is Server-Side Request Forgery (SSRF) especially severe against cloud workloads running IMDSv1 at 169.254.169.254? | IMDSv1 serves temporary IAM role credentials to simple unauthenticated GET requests coerced from the vulnerable server. | ||
| 15 | What four metric groups compose CVSS v4.0, and what nomenclature identifies combined Base, Threat, and Environmental scores? | Base, Threat, Environmental, and Supplemental groups; combined scores use explicit labels such as CVSS-BT and CVSS-BTE. | ||
| 16 | What mechanism enables Cross-Site Request Forgery (CSRF), and which two browser/server defenses prevent it? | Browsers auto-attach session cookies to forged cross-origin requests; mitigate with anti-CSRF tokens and SameSite cookies. | ||
| 17 | What parser feature enables XML External Entity (XXE) vulnerabilities, and what configuration completely eliminates it? | XML parsers resolving untrusted external DTDs expose local files or internal URLs; disable DTDs and external entities. | ||
| 18 | Under OWASP Top 10 for LLM Applications (LLM01), how does indirect prompt injection differ from direct prompt injection? | Indirect injection embeds malicious instructions inside external web pages or RAG documents ingested by the LLM. | ||
| 19 | How does WPA3-Personal improve upon WPA2-Personal PSK against offline Wi-Fi handshake dictionary cracking? | WPA3 replaces the static 4-way PSK handshake with Simultaneous Authentication of Equals (SAE) providing forward secrecy. | ||
| 20 | How does blind SQL injection differ from union-based SQL injection, and what is the primary code-level defense? | Blind SQLi infers data via boolean or time delays without inline DB output; defend with parameterized prepared statements. | ||
| 21 | Why must penetration testers obtain explicit written authorization from both the client and any hosted/cloud third parties? | Signed authorization establishes legal safe harbor under anti-hacking laws like the US CFAA and shared-infra policies. | ||
| 22 | How do directory/path traversal flaws bypass file restrictions, and what server-side validation blocks them? | Encoded relative sequences escape intended folders; canonicalize file paths first and verify they match an allowed root. | ||
| 23 | What is a Time-of-Check to Time-of-Use (TOCTOU) race condition, and how do database engineers prevent it? | State changes between validation and execution allow double-spending or bypasses; use atomic transactions and row locks. | ||
| 24 | Which architectural guardrails mitigate indirect prompt injection in tool-calling LLM agents? | Enforce least-privilege API scopes, untrusted data delimiters, output validation, and human approval for high-risk actions. | ||
| 25 | What three closeout activities are mandatory at the conclusion of a professional penetration test? | Remove test artifacts/accounts, deliver executive and technical remediation reports, and perform retest attestation. | ||
| 26 | How does a Master Services Agreement (MSA) differ from a Statement of Work (SOW) in penetration test scoping? | The MSA sets overarching legal terms and liability, whereas the SOW defines project-specific deliverables and timelines. | ||
| 27 | What operational parameters must be documented in the Rules of Engagement (RoE) before testing begins? | In-scope IP ranges/domains, permitted testing windows, restricted techniques (e.g., DoS), and emergency contacts. | ||
| 28 | What misconfiguration allows an unauthorized DNS zone transfer (AXFR over TCP/53), and how is it remediated? | Permissive DNS servers answer AXFR to any host; remediate by restricting allow-transfer to authorized secondary servers. | ||
| 29 | What is Broken Object Property Level Authorization (Mass Assignment), and what architectural pattern prevents it? | Clients overwrite privileged model fields (e.g., isAdmin) via JSON input; prevent with explicit DTO property allowlists. | ||
| 30 | What distinguishes Stored, Reflected, and DOM-based Cross-Site Scripting (XSS), and what layered controls mitigate them? | Stored persists in DBs, Reflected echoes request input, DOM executes client-side; fix via output encoding and strict CSP. | ||
| 31 | What defines OWASP API1:2023 Broken Object Level Authorization (BOLA / IDOR), and how must APIs remediate it? | Users access unauthorized records by altering object IDs; enforce server-side object ownership checks on every request. | ||
| 32 | In Nmap, how does a TCP SYN scan (-sS) differ from a TCP Connect scan (-sT) in packet flow and privilege level? | -sS requires raw-socket privileges and sends RST after SYN/ACK (half-open), while -sT completes the OS 3-way handshake. |