EC-CouncilAssociate level312-50Page 4 of 5

312-50 exam dumps: questions 301 to 400 of 473

Page 4 of the free 312-50 question bank for the Certified Ethical Hacker (CEH) exam. Questions 301 to 400 are listed below, the first 5 in full with answers and explanations. Back to page 1 for the exam overview and FAQ.

Question bank last updated April 2026

Free 312-50 practice questions

Questions 301 to 305 of 473

Pick an answer before you open the explanation. Each question also has its own page with a permalink.

312-50 Question 301

Single answer▪ Web App Threats

During an authorized assessment of an e-commerce web application, you observe that after a user adds items to the cart, the application sends a POST request to /checkout/confirm with parameters including order_id, shipping_address, and total_amount. By intercepting the request in a proxy and changing total_amount from 499.99 to 4.99, the server accepts the modified value and completes the purchase at the lower price. Which vulnerability best describes this issue?

  1. A

    Cross-Site Request Forgery (CSRF), because the application accepts forged state-changing requests

  2. B

    Parameter tampering, because client-supplied values are trusted without proper server-side validation

  3. C

    Session fixation, because the attacker can control the victim's authenticated session state

  4. D

    SQL injection, because altering numeric input changes how the backend database processes the order

Show answer and explanation

Correct answer: B

Explanation

The best answer is parameter tampering. This web app threat occurs when an attacker modifies parameters exchanged between client and server to alter application behavior, often affecting prices, quantities, account identifiers, or privilege flags. In this case, the application should never trust the client-provided total_amount for final payment processing. Instead, the server should recalculate the total based on authoritative product and pricing data stored server-side. This aligns with OWASP guidance on secure design, input validation, and protecting against business logic abuse. OWASP Web Security Testing Guide and OWASP Top 10 principles emphasize that hidden fields, cookies, and request parameters are fully under attacker control and must be validated or ignored for security-sensitive decisions. A proper remediation would include server-side recalculation of order totals, integrity checks on business-critical values, and logging/alerting for suspicious price manipulation attempts.

  • A. Incorrect.

    Incorrect. CSRF involves tricking an authenticated user’s browser into sending an unwanted request to a vulnerable application. In this scenario, the tester is directly modifying a legitimate request parameter in transit using an intercepting proxy. The core problem is not a missing anti-CSRF control, but the server trusting a client-provided price value.

  • B. Correct.

    Correct. This is a classic parameter tampering issue, also called web parameter manipulation. The application relies on client-supplied data such as total_amount instead of recalculating or validating it on the server. In secure web applications, price, discounts, roles, and other security-sensitive values must be derived and enforced server-side, not trusted from hidden fields, cookies, or intercepted requests.

  • C. Incorrect.

    Incorrect. Session fixation occurs when an attacker sets or predicts a session identifier and causes the victim to authenticate with that known session ID. Nothing in the scenario involves controlling or fixing the session token. The vulnerability is tied to manipulation of business-critical request parameters, not session establishment.

  • D. Incorrect.

    Incorrect. SQL injection occurs when untrusted input is incorporated into SQL queries in an unsafe way, allowing query manipulation. Although the changed value is numeric, the scenario does not show evidence of database query manipulation. The observed impact comes from business logic trusting modified client input, which is distinct from SQL injection.

312-50 Question 302

Single answer▪ Web App Threats

During an authorized web application assessment, you test an e-commerce site's password reset function. The application sends a link such as https://shop.example.com/reset?token=8f3c... to the user's email. While intercepting traffic with a proxy, you modify the Host header in the password reset request to attacker.example.net. The application then emails the victim a reset link pointing to https://attacker.example.net/reset?token=8f3c.... Which web application threat does this most directly demonstrate?

  1. A

    Host header injection leading to password reset poisoning

  2. B

    Cross-Site Request Forgery (CSRF) because the victim receives an unsolicited reset email

  3. C

    Server-Side Request Forgery (SSRF) because the server processes a user-supplied URL

  4. D

    Open redirect because the reset link points to an external domain

Show answer and explanation

Correct answer: A

Explanation

The most direct issue is Host header injection causing password reset poisoning. Many web applications generate absolute URLs for emails by relying on the incoming Host header or related proxy headers. If these values are not validated against an allowlist of trusted domains, an attacker can alter them and cause the application to send security-sensitive links, such as password reset URLs, to an attacker-controlled host. This is dangerous because the token remains valid, and the victim may click the malicious-looking-but-otherwise-expected reset email link. Best practice is to avoid deriving security-sensitive links from client-supplied headers; instead, use a server-side configured canonical base URL, validate host/proxy headers, and deploy frameworks or reverse proxies with strict trusted host settings. This aligns with OWASP guidance on secure password recovery and unvalidated host header handling in web applications.

  • A. Correct.

    Correct. This scenario is a classic Host header injection issue that results in password reset poisoning. The application improperly trusts the user-supplied Host header when constructing absolute URLs in password reset emails. An attacker can cause the server to generate a valid reset link using an attacker-controlled domain, potentially capturing the victim's reset token and taking over the account.

  • B. Incorrect.

    Incorrect. CSRF involves tricking an authenticated user's browser into sending unintended requests to a target application. In this case, the core issue is not the victim's browser performing an unwanted state-changing action, but the server trusting manipulated request metadata to build a password reset URL.

  • C. Incorrect.

    Incorrect. SSRF occurs when a server is induced to make outbound requests to attacker-controlled or unintended internal/external resources. Here, the problem is the application reflecting the Host header into an email link, not the server making a backend request to attacker.example.net.

  • D. Incorrect.

    Incorrect. Open redirect refers to an application endpoint that forwards or redirects users to a user-controlled destination, typically via a parameter such as next= or url=. In this scenario, the vulnerability is in reset link generation based on the Host header, not an unsafe redirect endpoint.

312-50 Question 303

Single answer▪ Web App Hacking Methodology

During an authorized web application assessment, you discover that the target site uses a multi-step password reset workflow: the user submits a username, receives a reset link by email, and then sets a new password through a form at /reset/confirm. You notice the reset form sends a POST request containing a reset token in the body, and the application accepts the request even when the HTTP Referer header is missing. The application uses cookies for session management and does not include any anti-CSRF token in the password reset form. Which finding is the most accurate to report based on web app hacking methodology?

  1. A

    The password reset function is vulnerable to CSRF because the state-changing request relies on browser-supplied session cookies and lacks a server-validated anti-CSRF token

  2. B

    The password reset function is vulnerable to SQL injection because the reset token is submitted in a POST request instead of a GET request

  3. C

    The password reset function is secure because the reset token in the request body is sufficient protection against forged requests

  4. D

    The password reset function is vulnerable to clickjacking because the Referer header is not required

Show answer and explanation

Correct answer: A

Explanation

In web app hacking methodology, testers evaluate authentication, session management, and state-changing functions for request forgery weaknesses. Password reset workflows are especially sensitive because they directly affect account access. A key principle from widely accepted guidance such as the OWASP Web Security Testing Guide (WSTG) and the OWASP CSRF Prevention Cheat Sheet is that state-changing requests should not rely solely on cookies or other automatically attached browser credentials. Applications should use robust anti-CSRF defenses such as unpredictable server-validated CSRF tokens, SameSite cookie controls where appropriate, and, in some architectures, additional origin verification. Referer or Origin checking can be a supplemental control, but it is not generally the primary or sole defense. The best report here is that the workflow is potentially vulnerable to CSRF because the form performs a sensitive action and lacks a proper anti-CSRF mechanism.

  • A. Correct.

    Correct. A password reset confirmation is a state-changing action. If the application authenticates the request using the victim's browser session cookie and does not require a unique, server-validated anti-CSRF token, it may be susceptible to Cross-Site Request Forgery. The absence of Referer validation alone is not the root issue; the main problem is that the application appears to rely on ambient authority from cookies without CSRF-specific protection. In a real assessment, the tester would also verify exploitability by checking whether an attacker can cause the victim's browser to submit the reset request under realistic conditions.

  • B. Incorrect.

    Incorrect. Whether a parameter is sent via POST or GET does not determine SQL injection risk. SQL injection depends on unsafe server-side handling of input in database queries. A reset token in a POST body does not inherently indicate SQL injection. This distractor reflects a common misconception that request method alone implies a specific vulnerability class.

  • C. Incorrect.

    Incorrect. A reset token can help authorize the password reset process, but it does not automatically prevent CSRF. If an attacker can induce the victim's browser to submit a valid request that includes the token, or if the token is already present in the victim's browser context during the reset flow, the lack of an anti-CSRF mechanism remains a concern. Security depends on how the token is generated, validated, and bound to user actions, not merely on its presence in the request body.

  • D. Incorrect.

    Incorrect. Clickjacking and CSRF are different issues. Clickjacking involves tricking a user into interacting with a concealed or framed interface element, typically mitigated with X-Frame-Options or Content-Security-Policy frame-ancestors. Not requiring a Referer header does not by itself demonstrate clickjacking. This option is plausible because both attacks involve browser behavior, but it misclassifies the weakness.

312-50 Question 304

Single answer▪ Web App Hacking Methodology

During an authorized assessment of a company's customer portal, you discover that the application uses a numeric parameter in requests such as /invoice/view?id=48217. The portal enforces authentication, but after logging in as a standard user, you can change the id value and retrieve invoices belonging to other users. The application does not validate whether the requested invoice belongs to the authenticated account. According to a proper web application hacking methodology, what is the MOST accurate classification of this issue?

  1. A

    SQL injection, because modifying a numeric parameter exposes backend database records

  2. B

    Insecure Direct Object Reference (IDOR), because object-level authorization is missing for the requested resource

  3. C

    Session fixation, because the application allows a standard user to access another user's session context

  4. D

    Cross-Site Request Forgery (CSRF), because a predictable parameter can be manipulated by an authenticated user

Show answer and explanation

Correct answer: B

Explanation

The best answer is Insecure Direct Object Reference (IDOR). In a practical web app hacking methodology, after authentication testing and parameter analysis, a tester should evaluate whether resource identifiers such as account numbers, document IDs, invoice IDs, or profile references are protected by server-side authorization checks. Simply requiring login is not sufficient; the application must verify that the authenticated user is authorized to access the specific object requested. This weakness is widely aligned with OWASP guidance under Broken Access Control, one of the most critical web application risks. Testers commonly identify this issue by changing predictable identifiers and observing whether access control is enforced on each request. This scenario is not SQL injection because no evidence shows query syntax manipulation, not session fixation because session handling is not being hijacked, and not CSRF because the attack does not rely on inducing another user's browser to send requests.

  • A. Incorrect.

    Incorrect. Although changing a numeric parameter results in access to other database-backed records, this alone does not indicate SQL injection. SQL injection requires unsafe handling of input in database queries, typically allowing alteration of query structure. In this scenario, the key problem is missing authorization on direct object access, not query manipulation.

  • B. Correct.

    Correct. This is a classic Insecure Direct Object Reference (IDOR), a type of broken access control where the application exposes a direct reference to an internal object, such as an invoice ID, and fails to enforce authorization checks to confirm the authenticated user is permitted to access that specific object. In modern terminology, this is commonly discussed under broken object-level authorization or broken access control.

  • C. Incorrect.

    Incorrect. Session fixation involves forcing or reusing a known session identifier so that a victim authenticates into a session the attacker already knows. Here, there is no evidence of session identifier manipulation. The user remains in their own authenticated session and is abusing weak object authorization by tampering with a resource identifier.

  • D. Incorrect.

    Incorrect. CSRF involves tricking an authenticated victim's browser into sending unintended requests to a target application. The presence of a predictable or modifiable parameter does not make this CSRF. In this case, the tester is directly modifying a request in their own session, which points to an authorization flaw rather than a cross-site request forgery issue.

312-50 Question 305

Single answer▪ Web App Hacking Methodology

During an authorized web application assessment, you discover that the application's search page sends requests such as GET /search?q=laptop. When you submit a single quote (') in the q parameter, the application returns a generic 500 error. You also notice that the response time for some crafted inputs changes significantly, but the application suppresses database error messages. The rules of engagement require you to minimize impact and avoid unnecessary data extraction. According to sound web app hacking methodology, what is the BEST next step to confirm whether the parameter is vulnerable to SQL injection?

  1. A

    Use boolean-based and time-based SQL injection test payloads on the q parameter to safely verify injection behavior without dumping data

  2. B

    Immediately run an automated SQL injection tool with full database enumeration enabled to identify all tables and users

  3. C

    Switch to cross-site scripting payloads in the q parameter because the 500 error proves the input is reflected in the browser

  4. D

    Modify the application's session cookie to impersonate another user, since SQL injection cannot be confirmed without visible database errors

Show answer and explanation

Correct answer: A

Explanation

In web app hacking methodology, testers typically proceed in a structured order: reconnaissance and mapping, input vector identification, initial probing, vulnerability confirmation, and only then controlled exploitation if permitted. In this scenario, the single quote causing a 500 error is a useful indicator, but not sufficient proof by itself because generic server errors can have multiple causes. Since the application suppresses DBMS errors, blind SQL injection techniques are the most appropriate way to confirm the issue. Boolean-based tests compare application behavior for true/false conditions, while time-based tests measure induced delays when content differences are not visible. This approach is consistent with OWASP testing guidance for SQL injection, which recommends safe, incremental validation rather than immediately performing high-impact enumeration. It also aligns with professional best practices and rules of engagement: confirm first, minimize impact, and avoid unnecessary data access.

  • A. Correct.

    Correct. When verbose database errors are suppressed, the appropriate next step is to use controlled boolean-based and/or time-based tests to determine whether the parameter affects backend SQL logic. This aligns with a disciplined web app testing methodology: identify the input vector, observe anomalous behavior, then validate the suspected vulnerability using low-impact techniques before attempting exploitation. For example, comparing responses to conditions that evaluate true versus false, or introducing a small database delay, can confirm SQL injection while respecting scope and minimizing risk.

  • B. Incorrect.

    Incorrect. Full automated enumeration is not the best next step because it increases impact and goes beyond confirmation. In a professional assessment, especially when the rules of engagement emphasize minimizing disruption, the tester should first validate the vulnerability with limited, targeted payloads. Enumeration may be appropriate later if explicitly authorized and necessary, but it is not the most methodical or least invasive confirmation step.

  • C. Incorrect.

    Incorrect. A 500 error after inserting a single quote may indicate malformed backend processing, including possible SQL injection, but it does not prove reflected input or XSS. Cross-site scripting testing is a different assessment path focused on client-side execution in the browser. Choosing XSS here reflects a common misconception that any input-related error implies browser-side injection, which is not supported by the observed behavior.

  • D. Incorrect.

    Incorrect. Session cookie manipulation is unrelated to confirming SQL injection in the q parameter. Also, SQL injection does not require visible database errors to be confirmed; blind techniques exist specifically for cases where applications suppress error details. This option confuses authentication/session attacks with input-validation and server-side query testing.

Timed practice exam

Take a 312-50 practice test under exam conditions

125 questions in 240 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam

312-50 practice questions 301 to 400 of 473

Every question has a page with the answer and explanation. Numbers are stable, so you can bookmark or share them. The bank is split into 5 pages of up to 100 questions.

  1. 301.During an authorized assessment of an e-commerce web application, you observe that after a user adds items to...
  2. 302.During an authorized web application assessment, you test an e-commerce site's password reset function. The...
  3. 303.During an authorized web application assessment, you discover that the target site uses a multi-step password...
  4. 304.During an authorized assessment of a company's customer portal, you discover that the application uses a...
  5. 305.During an authorized web application assessment, you discover that the application's search page sends...
  6. 306.During an authorized reconnaissance engagement, you need to footprint a target company's public web...
  7. 307.During an authorized reconnaissance engagement, you are asked to footprint a company’s public web...
  8. 308.During a pre-engagement reconnaissance phase, you are authorized to footprint the web infrastructure of a...
  9. 309.During an authorized web application assessment, you intercept a POST request to /account/update in Burp...
  10. 310.During an authorized assessment of a customer portal, you intercept a request to /account/update and notice...
  11. 311.During a sanctioned assessment of an e-commerce web application, you intercept the following HTTP request in...
  12. 312.During an authorized web application assessment, you find an account profile page where the browser disables...
  13. 313.During an authorized web application assessment, you test a profile update function that includes an email...
  14. 314.During an authorized web application assessment, you encounter an account update page that uses JavaScript to...
  15. 315.During an authorized internal assessment, you discover that a legacy web application allows users to log in...
  16. 316.During an internal CEH-authorized assessment, you discover that a legacy web application uses a custom login...
  17. 317.During an authorized internal assessment, you discover that a legacy web application uses HTTP Basic...
  18. 318.A healthcare company hires an ethical hacker to perform a penetration test against its patient portal and...
  19. 319.A consulting firm is preparing to perform a penetration test against a retail company's externally accessible...
  20. 320.A consulting firm has been hired to perform a penetration test against a retail company. During the kickoff...
  21. 321.During an authorized internal security assessment, you obtain a low-privileged domain user account and...
  22. 322.During an authorized internal assessment, you obtain a low-privileged domain user account in a Windows Active...
  23. 323.During an authorized internal assessment, a CEH tester gains a low-privileged domain user account through...
  24. 324.During an authorized internal penetration test, you exploit a vulnerable Windows server and obtain a...
  25. 325.During an authorized web application assessment, you exploit a reflected XSS flaw in an internal HR portal....
  26. 326.During an authorized internal penetration test, you compromise a Linux web server and use Metasploit to...
  27. 327.During an authorized web application assessment, you test a product search feature that sends requests like...
  28. 328.During an authorized web application assessment, you test a product search feature that sends requests like...
  29. 329.During an authorized web application assessment, you test a product search feature that sends a GET request...
  30. 330.During an authorized assessment of an e-commerce application, you create a normal user account and add a...
  31. 331.During an authorized assessment of an online retail application, you notice the checkout workflow applies a...
  32. 332.During an authorized assessment of an e-commerce application, you observe that discount codes are validated...
  33. 333.During an authorized assessment of a company’s cloud-hosted application, you are given a low-privilege shell...
  34. 334.During an authorized assessment of a company that runs several web applications on the same Linux-based...
  35. 335.A company hires an ethical hacker to assess the risk of its public cloud deployment. During reconnaissance,...
  36. 336.During an authorized internal assessment, you discover a legacy web application that connects to a Microsoft...
  37. 337.During an authorized internal assessment, you discover a legacy web application that connects to a Microsoft...
  38. 338.During an authorized assessment, you discover a web application that connects to a Microsoft SQL Server back...
  39. 339.During an authorized CEH web application assessment, you need to demonstrate a client-side attack path...
  40. 340.During an authorized internal engagement, you are asked to assess whether users of the company’s legacy...
  41. 341.During an authorized red-team engagement, you need to assess whether employees are vulnerable to client-side...
  42. 342.During an authorized assessment, you are testing a RESTful web service used by a mobile application. The API...
  43. 343.During an authorized assessment, you are testing a SOAP-based customer portal that exposes a WSDL file at...
  44. 344.During an authorized assessment, you are testing a RESTful web service at...
  45. 345.During an authorized assessment, a company asks you to review a public-facing web application that uses a...
  46. 346.During an authorized assessment, you discover a web application that lets administrators configure an...
  47. 347.During an authorized assessment of a company’s CI/CD environment, you discover a public-facing webhook...
  48. 348.During an authorized web application assessment, you test a customer portal that uses a URL such as...
  49. 349.During an authorized web application assessment, you review an online payroll portal that uses the following...
  50. 350.During an authorized web application assessment, you test a customer portal that displays account details at...
  51. 351.During an authorized web application assessment, you test a product search feature that sends requests like...
  52. 352.During an authorized web application assessment, you test a login form that sends a POST request with the...
  53. 353.During an authorized web application assessment, you test a product search feature that sends requests like:...
  54. 354.During a sanctioned web application assessment, you test a product search feature that issues a request such...
  55. 355.During an authorized web application assessment, you find that the product search page sends requests like...
  56. 356.During an authorized web application assessment, you test a product search feature that sends requests such...
  57. 357.During an authorized web application assessment, you identify a product search parameter:...
  58. 358.During an authorized web application assessment, you find that the product search page sends requests like...
  59. 359.During an authorized web application assessment, you identify a product search feature that sends requests...
  60. 360.During an authorized web application assessment, you identify a GET parameter that appears vulnerable to SQL...
  61. 361.During an authorized web application assessment, you discover that the product page submits a GET request...
  62. 362.During an authorized web application assessment, you identify a GET parameter that appears injectable:...
  63. 363.During an authorized internal penetration test, you discover that perimeter IPS devices are dropping your SYN...
  64. 364.During an authorized internal assessment, you discover that a perimeter IDS is generating alerts for...
  65. 365.During an authorized internal security assessment, you need to identify live hosts in a segmented network...
  66. 366.A retail company's customer portal was found vulnerable during an internal assessment. The tester...
  67. 367.A retail company discovers that its customer search page is vulnerable to SQL injection because the...
  68. 368.A company asks you to review a customer portal after a penetration test found SQL injection in the login and...
  69. 369.During an authorized wireless assessment, you discover a client network using WPA2-PSK on several access...
  70. 370.During an authorized wireless assessment, you discover that a company’s guest Wi-Fi uses WPA2-Personal with a...
  71. 371.During an authorized wireless assessment of a corporate office, you identify an access point broadcasting the...
  72. 372.During an authorized wireless assessment, you capture a WPA2-Personal 4-way handshake from a branch office...
  73. 373.During an authorized wireless security assessment, you discover that a client’s guest Wi-Fi uses...
  74. 374.During an authorized wireless security assessment, you discover a company still uses WPA2-Personal (PSK) on...
  75. 375.During an authorized wireless security assessment, you discover an employee SSID using WPA2-PSK. Several...
  76. 376.During an authorized wireless assessment, a company reports that employees are being disconnected from the...
  77. 377.During an authorized wireless assessment of a corporate office, you discover a rogue access point in a...
  78. 378.During an authorized wireless assessment, you identify a target corporate SSID using WPA2-PSK. The access...
  79. 379.During an authorized wireless assessment, you identify a target corporate SSID using WPA2-Personal (PSK)....
  80. 380.During an authorized wireless assessment, you discover a target corporate SSID uses WPA2-PSK and WPS is...
  81. 381.During an authorized wireless assessment of a corporate office, you discover an employee SSID using WPA2-PSK....
  82. 382.During an authorized wireless security assessment, you need to verify whether a client's WPA2-PSK wireless...
  83. 383.During an authorized wireless security assessment, you need to evaluate whether a client's WPA2-PSK wireless...
  84. 384.During an authorized wireless security assessment of a corporate office, you discover several employee...
  85. 385.During an authorized wireless assessment, you discover that several employees use legacy Bluetooth headsets...
  86. 386.During an authorized wireless security assessment of a corporate office, you discover several employee...
  87. 387.During a wireless security assessment, a company reports that employees are frequently being disconnected...
  88. 388.During a wireless security assessment, a company discovers that employees are frequently connecting to a...
  89. 389.A company discovers that employees are repeatedly connecting to a rogue wireless access point set up in the...
  90. 390.During an authorized wireless assessment of a corporate office, you discover a WPA2-PSK protected access...
  91. 391.During an authorized wireless assessment, you need to verify whether a client device can be forced to...
  92. 392.During an authorized wireless assessment, you are asked to determine whether a nearby corporate Wi-Fi network...
  93. 393.During an authorized assessment of a company's Android mobile application, you discover that the app stores...
  94. 394.During an authorized assessment of a company's Android mobile app, you discover that the app uses an exported...
  95. 395.During a mobile application security assessment, you are testing an Android banking app used by field...
  96. 396.During an authorized mobile application assessment, you are testing an Android app that stores authentication...
  97. 397.During an authorized mobile application assessment, you are testing an Android app that is marked with...
  98. 398.During an authorized mobile application assessment, you are testing an Android app used by field employees....
  99. 399.During an authorized mobile app assessment, you are testing an iOS application used by field employees. The...
  100. 400.During an authorized mobile application assessment, you are testing an iOS app that appears to enforce...