Osclass <= 3.4.2 (Search::setJsonAlert) SQL Injection Vulnerability
User input in the 'alert' parameter when subscribing to a search alert is not validated before being stored in the database. An unauthenticated attacker could inject arbitrary SQL commands through several parameters passed to the Search::setJsonAlert() method, which are later used in a query within Search::doSearch().
karmainsecurity.com
Published on karmainsecurity.com
The vulnerability exists because user input passed through the “alert” parameter when subscribing to a search alert is not properly validated before being stored into the DB (ssearch field of the octalerts table). This can be exploited by unauthenticated attackers to inject arbitrary SQL commands via several…
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 missing input validation and parameterisation before storing user-supplied search alert data and later using it in a SQL query.
Impact
An unauthenticated attacker could inject arbitrary SQL commands, potentially reading or modifying database contents.
What the attacker needed
No authentication required
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.
When you subscribe to a search alert, the site saves your search settings in its database. The problem is that it saves whatever you type without checking it first. A malicious user could type special database commands instead of normal search settings, and later when the site uses those saved settings, the commands run on the database.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.