nerdexam
GIAC

GPEN · Question #135

John works as a professional Ethical Hacker. He has been assigned a project to test the security and successfully logs in to the user page of the Web site. The We-are-secure login page is vulnerable…

The correct answer is C. SQL injection attack. Successfully logging into a web application by exploiting a login page typically indicates an SQL injection vulnerability that bypassed authentication logic. SQL injection allows attackers to manipulate backend database queries by injecting malicious SQL code into input fields.

Web Application Penetration Testing

Question

John works as a professional Ethical Hacker. He has been assigned a project to test the security and successfully logs in to the user page of the Web site. The We-are-secure login page is vulnerable to a __________.

Options

  • AReplay attack
  • BLand attack
  • CSQL injection attack
  • DDictionary attack

How the community answered

(46 responses)
  • A
    2% (1)
  • B
    13% (6)
  • C
    78% (36)
  • D
    7% (3)

Why each option

Successfully logging into a web application by exploiting a login page typically indicates an SQL injection vulnerability that bypassed authentication logic. SQL injection allows attackers to manipulate backend database queries by injecting malicious SQL code into input fields.

AReplay attack

A replay attack involves intercepting and reusing valid session tokens or credentials, not actively bypassing authentication through input manipulation.

BLand attack

A land attack is a network-layer denial-of-service technique that sends packets with the same source and destination IP, and has no relevance to web application login page vulnerabilities.

CSQL injection attackCorrect

SQL injection on a login page works by inserting SQL syntax such as ' OR '1'='1 into username or password fields, which manipulates the underlying SQL query so it always returns true and grants access without valid credentials. This attack targets the failure to properly parameterize or sanitize user input before it is passed to the database engine, allowing the attacker to subvert authentication logic entirely.

DDictionary attack

A dictionary attack involves brute-forcing credentials using a wordlist of common passwords, which requires valid credentials to exist and does not exploit query logic flaws.

Concept tested: SQL injection authentication bypass on login pages

Source: https://owasp.org/www-community/attacks/SQL_Injection

Topics

#SQL injection#authentication bypass#login security#web application attacks

Community Discussion

No community discussion yet for this question.

Full GPEN Practice