Skip to content
SQL injection Write-up Intermediate

WeBid <= 1.0.2 (logout.php) SQL Injection Vulnerability

The logout.php script in WeBid fails to sanitise the WEBID_RM_ID cookie, allowing an attacker to inject SQL commands. This could let an attacker manipulate or disclose arbitrary data in the back-end database.

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 logout.php script not properly sanitizing user-supplied input to the ‘WEBIDRMID’ cookie.

The author, on karmainsecurity.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 logout.php script concatenates the WEBID_RM_ID cookie value directly into an SQL query without sanitisation or parameterisation.

Impact

An attacker could manipulate or disclose arbitrary data in the back-end database.

What the attacker needed

Ability to set the WEBID_RM_ID 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.

SQL injection is when a program puts user input directly into a database command without cleaning it first. Here, a cookie value is used in a database query, so an attacker who can set that cookie can change the query to 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.

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.