WeBid <= 1.0.2 (user_login.php) SQL Injection Vulnerability
The user_login.php script in WeBid does not properly sanitise the WEBID_ONLINE cookie, allowing an attacker to inject SQL queries into the back-end database. This could let an attacker manipulate or disclose arbitrary data.
karmainsecurity.com
Published on karmainsecurity.com
WeBid contains a flaw that may allow an attacker to carry out an SQL injection attack. The issue is due to the userlogin.php script not properly sanitize user-supplied input passed via the ‘WEBIDONLINE’ cookie.
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 WEBID_ONLINE cookie value is concatenated into an SQL query without parameterisation or escaping.
Impact
An attacker could manipulate or disclose arbitrary data in the database.
What the attacker needed
Ability to set the WEBID_ONLINE cookie
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.
A cookie is a small piece of data a website stores in your browser and sends back on each request. Here the site put that cookie value straight into a database command without cleaning it, so a malicious value could change the command. That means someone could read or alter data they should not see.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.