CVE-2021-43420

SQL injection vulnerability in Login.php in Sourcecodester Online Payment Hub v1 by oretnom23, allows attackers to execute arbitrary SQL commands via the…

published January 24, 2022

CVSS
—
EPSS
1%
Percentile
70.0
In the wild
Unconfirmed
What it is

⚠️ A sneaky SQL injection hides in Login.php! Attackers can exploit this flaw just by playing with the username parameter — think of it as a password that's more like a VIP pass! 🔑 Imagine a waiter who takes your order without checking your ID — they might serve someone else's meal instead of yours! This SQL injection lets attackers run any SQL command through the username parameter, bypassing the normal checks. If exploited, an attacker could easily manipulate the database, allowing them to steal sensitive information, modify existing records, or even wipe entire tables clean. This could lead to a catastrophic loss of data integrity and privacy for users, leading to a major trust failure!

Put simply

Imagine a waiter who takes your order without checking your ID — they might serve someone else's meal instead of yours! This SQL injection lets attackers run any SQL command through the username parameter, bypassing the normal checks. This vulnerability in Sourcecodester Online Payment Hub's Login.php file allows attackers to execute arbitrary SQL commands through the username parameter, compromising the application's database security.

What to do

If exploited, an attacker could easily manipulate the database, allowing them to steal sensitive information, modify existing records, or even wipe entire tables clean. This could lead to a catastrophic loss of data integrity and privacy for users, leading to a major trust failure! To mitigate this risk, validate and sanitize user inputs rigorously to ensure that only expected values are processed. Additionally, consider implementing prepared statements to prevent SQL injection attacks from being successful. Regularly auditing your application for similar vulnerabilities is also a smart move! You’ve got this! With a few updates, you can secure your application and protect your users! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01289 · 70.0th percentile
Published
2022-01-24T18:53Z
EPSS history
Timeline
  • 24 JAN 18:53Z
    SQL injection vulnerability in Login.php in Sourcecodester Online Payment Hub v1 by oretnom23, allows attackers to execute arbitrary SQL commands via the…
    cvelistv5