Docsity

eLearnSecurity Web Application Penetration Tester Practice Exam, Exams of Technology

Toggle sidebar
bg1
eLearnSecurity Web Application Penetration Tester
Practice Exam
**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.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download eLearnSecurity Web Application Penetration Tester Practice Exam and more Exams Technology in PDF only on Docsity!

Practice Exam

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.

Practice Exam

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”?

Practice Exam

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

Practice Exam

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.

Practice Exam

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

Practice Exam

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

Practice Exam

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.

Practice Exam

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?

Practice Exam

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

Practice Exam

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.

Practice Exam

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

Practice Exam

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

Practice Exam

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.

Practice Exam

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 “