LibreNMS searchPhrase multiple authenticated SQL injections
LibreNMS 1.65 contains multiple SQL injection flaws in the searchPhrase parameter of the ajax_table.php endpoint. An authenticated attacker with normal privileges could use these to access the underlying database.
shielder.com
Published on shielder.com
LibreNMS 1.65 is affected by multiple SQL Injection vulnerabilities via the searchPhrase parameter in the /ajaxtable.php API endpoint. A ’normal’ privileges attacker can gain access to the database in use by LibreNMS.
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 searchPhrase parameter is concatenated into SQL queries without parameterisation or proper escaping.
Impact
An attacker with normal privileges could gain access to the database used by LibreNMS.
What the attacker needed
Authenticated account with normal privileges
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 user input is inserted into a database query without proper handling, letting an attacker change the query's meaning. Here, a logged-in user with ordinary rights could send a crafted search value to a specific endpoint and read data from the database. The report does not give the exact request details.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.