Skip to content
SQL injection Write-up Beginner

CVE-2020–29474 EgavilanMedia Address Book 1.0 Exploit — SQLi Auth Bypass

The login form of EgavilanMedia Address Book 1.0 is vulnerable to SQL injection, allowing an attacker to bypass authentication and gain admin panel access without credentials. This could lead to a data breach.

Mayur Parmar Follow

Published on systemweakness.com

2. Now put below Payload in both the fields( User ID & Password) Payload: admin’ or ‘1’=’1

Mayur Parmar, on systemweakness.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the application builds SQL queries by concatenating user input without proper sanitisation or parameterisation.

Impact

An attacker could gain access to the admin panel without credentials, which could lead to a data breach.

What the attacker needed

Access to the login page

The fix

The application should validate and sanitise user input and use prepared statements with parameterisation.

How it was found

  1. Open the admin login page.
  2. Enter the same malicious SQL string in both the User ID and Password fields.
  3. Submit the form; the server accepts it and grants admin access without valid credentials.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

The login page checks your username and password by inserting them directly into a database command. An attacker can type special characters that trick the database into ignoring the password check, so they get in without knowing any real login details.

What is SQL injection?

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.

More by Mayur Parmar

View all

3 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.