Skip to content
SQL injection Advisory Intermediate CVE-2021-21924CVE-2021-21925CVE-2021-21927CVE-2021-21928CVE-2021-21929CVE-2021-21930CVE-2021-21931CVE-2021-21932CVE-2021-21933CVE-2021-21934CVE-2021-21935CVE-2021-21936CVE-2021-21937

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.

Yuri Kramarz Follow

Originally disclosed on Cisco Talos

High 7.7 View original

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.

Yuri Kramarz, on Cisco Talos

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

  1. Log in to the application so a valid session cookie is available.
  2. Send a request to the device_list page with a crafted value in one of the filter parameters.
  3. 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.

More by Yuri Kramarz

View all

57 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

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.