CVE-2022-28531

Sourcecodester Covid-19 Directory on Vaccination System1.0 is vulnerable to SQL Injection via the admin/login.php txtusername (aka Username) field

published May 20, 2022

CVSS
—
EPSS
15%
Percentile
96.6
In the wild
Unconfirmed
What it is

⚠️ A simple username input holds the key to an SQL injection! The admin login form in Sourcecodester's Covid-19 Directory is like a door without a lock — easy for attackers to exploit! Think of the admin login as a restaurant's reservation list. If the waiter doesn’t check IDs or reservation details, anyone could waltz in and grab a table meant for someone else — chaos on the menu! An attacker could submit malicious SQL commands through the username field, potentially gaining access to the database and sensitive information. This could lead to unauthorized data exposure or manipulation, leaving the system vulnerable to further attacks.

Put simply

Think of the admin login as a restaurant's reservation list. If the waiter doesn’t check IDs or reservation details, anyone could waltz in and grab a table meant for someone else — chaos on the menu! This vulnerability allows attackers to exploit the admin/login.php username field to execute arbitrary SQL queries, bypassing normal authentication processes and accessing the database's contents.

What to do

An attacker could submit malicious SQL commands through the username field, potentially gaining access to the database and sensitive information. This could lead to unauthorized data exposure or manipulation, leaving the system vulnerable to further attacks. To fix this vulnerability, validate and sanitize all user inputs, especially in the login fields. Implement prepared statements for database queries to prevent SQL injection, and audit the whole application for similar issues. You've got this! With these steps, you can shore up security and keep your system safe! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.14582 · 96.6th percentile
Published
2022-05-20T18:29Z
EPSS history
Timeline
  • 20 MAY 18:29Z
    Sourcecodester Covid-19 Directory on Vaccination System1.0 is vulnerable to SQL Injection via the admin/login.php txtusername (aka Username) field
    cvelistv5