Advantech R-SeeNet application multiple SQL injection vulnerabilities in the 'device_list' page
Several filter parameters on the device_list page are placed into a SQL string that is passed to a stored procedure, which then builds and executes a prepared statement from that string without parameter binding. An authenticated attacker, or a victim lured into a cross-site request forgery, could inject SQL and read data from the database.
Originally disclosed on Cisco Talos
Multiple exploitable SQL injection vulnerabilities exist in the ‘devicelist’ page of the Advantech R-SeeNet 2.4.15 (30.07.2021). A specially-crafted HTTP request can lead to SQL injection.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application escapes filter values and concatenates them into a string passed to a stored procedure, which then concatenates that string into a dynamic SQL statement and prepares it without parameter binding, so the escaping is lost.
Impact
An authenticated user, or a victim of cross-site request forgery, could read arbitrary data from the database; the report does not demonstrate writing or executing code.
What the attacker needed
A valid authenticated session; or victim visits a crafted link (CSRF)
How it was found
- Log in to the application so a valid session cookie is available.
- Send a request to the device_list page with a crafted value in one of the filter parameters.
- Observe the delayed response confirming the injected SQL was executed.
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 report has not been written yet. The Original tab links to the source.
The application takes text a user types into filter boxes and glues it into a database command. The code tries to clean the text first, but the cleaned text is later pasted into a bigger command inside the database itself, so the cleaning no longer helps. Someone who can log in, or trick a logged-in user into loading a crafted link, can make the database run extra commands and leak stored information.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.