ImpressCMS <= 1.4.3 (findusers.php) SQL Injection Vulnerability
The findusers.php script passes the 'groups' POST parameter into user-count and user-listing handler methods without sanitising it. An attacker could inject SQL through that parameter to manipulate the database queries behind those calls.
karmainsecurity.com
Published on karmainsecurity.com
User input passed through the “groups” POST parameter is not properly sanitized before being used in a call to the icmsmemberHandler::getUserCountByGroupLink() and icmsmemberHandler::getUsersByGroupLink() methods at lines 281 and 294. These methods use the first argument to construct a SQL query without proper…
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 'groups' POST value is concatenated into SQL inside the group-link handler methods without parameterisation or validation.
Impact
An attacker could alter the database queries run by the user search, potentially reading or changing data the application stores.
What the attacker needed
Access to the findusers script; ability to send POST requests
The fix
The 'groups' input should be validated and the handler queries should use parameterised statements instead of building SQL from raw request data.
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 web page takes a value the visitor sends and puts it straight into a database command. If the value is crafted, it can change the command instead of just being data, which is called SQL injection. Here the 'groups' field is the one that is not cleaned up.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.