




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































Question 1. Which document typically outlines the legal boundaries, confidentiality expectations, and liability clauses for a web‑application penetration test? A) Statement of Work B) Non‑Disclosure Agreement C) Rules of Engagement D) Project Charter Answer: C Explanation: The Rules of Engagement (ROE) define the legal scope, confidentiality, and liability for the testing activity. Question 2. In the PTES framework, which phase directly follows “Intelligence Gathering”? A) Threat Modeling B) Exploitation C) Reporting D) Scanning Answer: B Explanation: PTES phases are: Pre‑engagement, Intelligence Gathering, Threat Modeling, Vulnerability Analysis, Exploitation, Post‑exploitation, Reporting. Exploitation follows Threat Modeling.
Question 3. When defining the scope of a penetration test, which element is least likely to be included? A) List of target URLs B) Allowed testing windows C) Pen‑tester’s personal email address D) Excluded IP ranges Answer: C Explanation: Personal contact information of the tester is irrelevant to scope definition. Question 4. An Executive Summary in a penetration‑test report should primarily be written for which audience? A) Senior management without technical background B) Security engineers needing exploit details C) Developers expecting code patches D) Legal counsel reviewing liability Answer: A Explanation: Executives need high‑level risk and business impact information, not technical minutiae. Question 5. Which OWASP WSTG chapter focuses on “Testing for Information Leakage”?
C) Metasploit D) Wireshark Answer: A Explanation: Sublist3r enumerates subdomains by leveraging public DNS data and brute‑force techniques. Question 8. When extracting metadata from a publicly available PDF, which piece of information is least likely to be found? A) Author name B) Creation software version C) Embedded JavaScript code D) Document’s SHA‑256 hash Answer: D Explanation: Hashes are not stored as metadata within PDF files. Question 9. What does the HTTP header X‑Content‑Type‑Options: nosniff protect against? A) Clickjacking B) MIME‑type sniffing attacks C) Cross‑site scripting D) Directory traversal
Answer: B Explanation: The nosniff directive tells browsers not to guess the MIME type, preventing content‑type confusion attacks. Question 10. Which status code indicates that the server understood the request but refuses to fulfill it due to insufficient permissions? A) 401 B) 403 C) 404 D) 500 Answer: B Explanation: 403 Forbidden signals that authentication succeeded (or is not required) but the client lacks rights. Question 11. Which encoding scheme is used when a URL contains the character “space”? A) Base B) URL percent‑encoding C) HTML entity encoding D) Unicode escape Answer: B Explanation: A space is encoded as %20 in URL percent‑encoding.
A) Intruder B) Repeater C) Spider D) Decoder Answer: C Explanation: The Spider component crawls the application and builds a map of discovered URLs. Question 15. Which type of SQL injection returns data by combining results from multiple SELECT statements? A) Error‑based B) Union‑based C) Boolean‑based D) Time‑based Answer: B Explanation: Union‑based injection uses the UNION SQL operator to merge result sets. Question 16. When performing a blind Boolean‑based SQLi, what indicates that the injected condition evaluated to true? A) Different HTTP status code B) Presence of a specific string in the response body
C) Longer response time D) Change in response header size Answer: B Explanation: A true condition typically causes the application to render a page containing expected content, allowing comparison. Question 17. Which SQLMap command option enables time‑based blind injection testing? A) --technique=U B) --risk=3 C) --time-sec=5 D) --tamper=space2comment Answer: C Explanation: --time-sec defines the delay threshold for time‑based injections. Question 18. NoSQL injection against a MongoDB query most commonly exploits which operator? A) $where B) $gt C) $regex D) $ne
Question 21. Which of the following is a reliable method to bypass a basic HTML‑entity filter for XSS? A) `` B) %3Cscript%3Ealert(1)%3C/script%3E C) <script>alert(1)</script> D) \x3Cscript\x3Ealert(1)\x3C/script\x3E Answer: C Explanation: HTML entity encoding (<) can evade filters that only strip literal < and > characters. Question 22. In DOM‑based XSS, which JavaScript source function is commonly abused to inject malicious code? A) document.write() B) eval() C) innerHTML D) All of the above Answer: D Explanation: All listed functions can execute attacker‑controlled data in the DOM context.
Question 23. Which authentication flaw allows an attacker to log in without providing valid credentials by reusing an existing session identifier? A) Brute‑force B) Credential stuffing C) Session fixation D) Password spray Answer: C Explanation: Session fixation forces a user to adopt a known session ID, allowing the attacker to hijack the session after login. Question 24. When testing password policies, which characteristic is least indicative of a strong password requirement? A) Minimum length of 12 characters B) Mandatory inclusion of special characters C) Prohibition of previously used passwords D) Requirement to change password every 30 days Answer: D Explanation: Frequent forced changes can lead to weaker passwords; the other options directly improve strength. Question 25. Which HTTP method is most commonly disabled on production web servers to reduce attack surface?
C) User’s authenticated session cookie D) HTTP Basic Authorization header Answer: C Explanation: The attacker relies on the victim’s browser automatically sending stored authentication cookies. Question 28. Which technique can bypass a CSRF token that is stored in a hidden form field? A) Submitting the form via GET request B) Using a cross‑site script to read the token from the DOM C) Replaying the original request captured with a proxy D) None of the above Answer: B Explanation: If the token is accessible in the DOM (e.g., not HttpOnly), malicious JavaScript can read and reuse it. Question 29. Which OWASP WSTG test case validates proper handling of HTTP verb tampering? A) WSTG‑INPV‑ 03 B) WSTG‑CONF‑ 06 C) WSTG‑SESS‑ 02 D) WSTG‑AUTH‑ 05
Answer: B Explanation: WSTG‑CONF‑06 focuses on testing for HTTP method manipulation. Question 30. When performing a directory brute‑force with Gobuster, which file extension list would be most appropriate for locating backup files? A) .php .asp .aspx B) .bak .old .zip C) .js .css .html D) .exe .dll .bin Answer: B Explanation: Backup files often have extensions like .bak, .old, .zip. Question 31. Which DNS record type is used to map a domain name to an IPv6 address? A) A B) AAAA C) CNAME D) MX Answer: B Explanation: AAAA records store IPv6 addresses.
A) Sending duplicate query parameters to confuse parsers B) Overloading the server with large POST bodies C) Injecting malicious code into cookies D) Using malformed HTTP methods Answer: A Explanation: Parameter pollution involves providing multiple instances of the same parameter, potentially causing unexpected behavior. Question 35. Which of the following is a typical indicator that a web application is vulnerable to XML External Entity (XXE) attacks? A) Accepts JSON payloads B) Parses user‑supplied XML without disabling external entities C) Uses a WAF that blocks XML D) Returns HTTP 415 for XML requests Answer: B Explanation: Allowing external entity resolution in XML parsers enables XXE exploitation. Question 36. When analyzing a web application’s SSL/TLS configuration, which tool can quickly identify weak cipher suites? A) Nikto B) SSLyze
C) DirBuster D) Hydra Answer: B Explanation: SSLyze scans for supported protocols, cipher suites, and configuration weaknesses. Question 37. Which HTTP status code is most appropriate for a request that violates a Web Application Firewall rule? A) 400 Bad Request B) 403 Forbidden C) 404 Not Found D) 429 Too Many Requests Answer: B Explanation: 403 indicates the request is understood but disallowed, matching a WAF block. Question 38. Which of the following is not a typical feature of a modern Web Application Firewall (WAF)? A) Signature‑based detection B) Positive security model (allow‑list) C) Automatic SQL injection patching on the server D) Rate limiting
Explanation: Content-Language tells the client the language of the returned representation. Question 41. When testing for insecure direct object references (IDOR), which technique is most effective? A) Changing numeric IDs in URLs to other values B) Submitting malformed JSON payloads C) Using a proxy to modify TLS certificates D) Flooding the server with SYN packets Answer: A Explanation: IDOR occurs when access control relies solely on object identifiers; altering them can expose unauthorized data. Question 42. Which of the following is an example of a “hard‑coded” credential that should be flagged during source‑code review? A) password = os.getenv('PASS') B) password = "P@ssw0rd123" C) password = input() D) password = generate_random() Answer: B Explanation: Storing plaintext passwords directly in code is a hard‑coded credential.
Question 43. Which HTTP method is used by browsers to request a resource without side effects and can be safely cached? A) POST B) PUT C) GET D) DELETE Answer: C Explanation: GET is defined as a safe, idempotent method suitable for caching. Question 44. Which technique can be used to bypass a web‑application firewall that blocks the string “