20+ practice questions focused on Web Application and Injection Attacks — one of the most tested topics on the Certified Ethical Hacker CEH exam. Each question includes a detailed explanation so you learn why the right answer is correct.
Start Web Application and Injection Attacks PracticeA web application uses a parameter 'file' to include server-side files. The following request is intercepted: GET /page.php?file=../../../etc/passwd HTTP/1.1. The response contains the contents of /etc/passwd. This vulnerability is most likely which of the following?
Explanation: The request uses path traversal sequences (../) to access a file outside the web root. Since the application then *includes* and displays the contents of this local file (`/etc/passwd`), this is a classic example of a Local File Inclusion (LFI) vulnerability.
An attacker sends a request to a web server with the following header: X-Forwarded-For: 127.0.0.1. The server processes the request as if it came from localhost and grants administrative access. This is an example of:
Explanation: The attacker manipulates the X-Forwarded-For header to spoof the client IP address as 127.0.0.1, making the server believe the request originates from localhost. This bypasses IP-based access controls and can be used to trick the server into making requests to internal resources or granting unauthorized access. This is a classic example of Server-Side Request Forgery (SSRF), where the attacker exploits the server's trust in header-derived IP addresses to access internal systems or functions.
Which THREE of the following are common indicators of an ongoing brute-force attack against a web application?
Explanation: Multiple failed logins from the same IP, high frequency of login requests, and many different usernames tried from one source are typical signs of brute-force.
Which of the following is the BEST defense against brute-force attacks on a login form?
Explanation: Rate limiting is the best defense because it proactively limits the number of login attempts from any source, making brute-force attacks impractical. CAPTCHA can be bypassed by automated solvers, account lockout can be circumvented via distributed IP attacks, and complex password policies do not prevent repeated attempts.
A security analyst identifies a vulnerability where an attacker can include a local file such as '/etc/passwd' by manipulating the 'page' parameter in the URL: http://example.com/index.php?page=../../../../etc/passwd. What type of attack is this?
Explanation: Local File Inclusion (LFI) is a vulnerability that allows an attacker to include local files on the server by manipulating input parameters. The example provided, where an attacker uses '..' sequences to access and include '/etc/passwd', is a classic demonstration of LFI. Directory traversal is the specific technique used to navigate the file system outside the web root in this LFI attack, but the overall 'type of attack' that results in including a local file is LFI.
+15 more Web Application and Injection Attacks questions available
Practice all Web Application and Injection Attacks questions1. Baseline your knowledge
Start with 10 questions to gauge your current understanding of Web Application and Injection Attacks. This tells you whether you need a concept refresher or just practice.
2. Review every explanation
For each question — right or wrong — read the full explanation. Understanding why an answer is correct is more valuable than knowing the answer itself.
3. Focus on exam traps
Web Application and Injection Attacks questions on the CEH frequently use trap wording. Look for subtle differences in answers that test your precision, not just general knowledge.
4. Reach 80% consistently
Do repeated sessions until you score 80%+ three times in a row. Then move to mixed-mode practice to test cross-topic recall under realistic conditions.
The exact number varies per candidate. Web Application and Injection Attacks is tested as part of the Certified Ethical Hacker CEH blueprint. Practicing with targeted Web Application and Injection Attacks questions ensures you can handle any format or difficulty that appears.
Yes. Courseiva provides free CEH practice questions across all exam topics and domains. The platform includes topic-based practice, mock exams, missed-question review, bookmarked questions, and readiness tracking — no account required.
Difficulty is subjective, but Web Application and Injection Attacks is a high-priority exam concept tested in multiple ways — direct recall, scenario analysis, and command-output interpretation. Consistent practice is the best way to build confidence.
Launch a full Web Application and Injection Attacks practice session with instant scoring and detailed explanations.
Start Web Application and Injection Attacks Practice →