CVE-2025-51092

The LogIn-SignUp project by VishnuSivadasVS is vulnerable to SQL Injection due to unsafe construction of SQL queries in DataBase.php

Critical · published August 22, 2025

CVSS v3.1
9.8
EPSS
0%
Percentile
34.0
In the wild
Unconfirmed
What it is

🚨 A SQL Injection vulnerability lurks in the LogIn-SignUp project, where user inputs are treated like VIPs without a bouncer checking their IDs! 🔥 Think of SQL queries as a restaurant order: if the chef accepts any dish without verifying the ingredients, the result could be a recipe for disaster! Here, the user inputs are the ingredients, carelessly tossed into the dish without any verification. An attacker could take advantage of this vulnerability to manipulate the database, allowing them to read, modify, or even delete critical data. With this kind of access, they could do anything from stealing sensitive information to completely wrecking your entire database. This isn't just a minor inconvenience; it could lead to absolute chaos!

Put simply

Think of SQL queries as a restaurant order: if the chef accepts any dish without verifying the ingredients, the result could be a recipe for disaster! Here, the user inputs are the ingredients, carelessly tossed into the dish without any verification. This vulnerability arises from the unsafe construction of SQL queries in DataBase.php, where user input and unvalidated table names are concatenated directly without using prepared statements, making it easy for attackers to inject malicious SQL code.

What to do

An attacker could take advantage of this vulnerability to manipulate the database, allowing them to read, modify, or even delete critical data. With this kind of access, they could do anything from stealing sensitive information to completely wrecking your entire database. This isn't just a minor inconvenience; it could lead to absolute chaos! To remediate this vulnerability, immediately refactor the logIn() and signUp() functions to use prepared statements for all SQL executions. Additionally, enhance the prepareData() function to properly sanitize the table names before they're used in any queries. Don't wait—patch it now! You've got this! Follow these steps, and you'll have your defenses fortified in no time. 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00409 · 34.0th percentile
Published
2025-08-22T00:00Z
EPSS history
Timeline
  • 22 AUG 00:00Z
    The LogIn-SignUp project by VishnuSivadasVS is vulnerable to SQL Injection due to unsafe construction of SQL queries in DataBase.php
    cvelistv5