Skip to content
SQL injection Advisory Intermediate CVE-2021-21918CVE-2021-21919

Advantech R-SeeNet application multiple SQL injection vulnerabilities in the 'company_list' page

Multiple SQL injection vulnerabilities exist in the 'company_list' page of Advantech R-SeeNet 2.4.15 due to improper use of prepared statements and SQL concatenation. An authenticated attacker with super-administrator privileges could execute arbitrary SQL commands, potentially leading to data disclosure.

Yuri Kramarz Follow

Originally disclosed on Cisco Talos

High 7.7 View original

Multiple exploitable SQL injection vulnerabilities exist in the ‘companylist’ 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 uses prepared statements but then concatenates user input into the SQL string passed to the stored procedure, which executes it dynamically without parameter binding.

Impact

An authenticated attacker with super-administrator privileges could execute arbitrary SQL commands, potentially leading to high confidentiality impact, but exploitation without cross-site request forgery requires the high privilege super-administrator account.

What the attacker needed

Super-administrator account

The fix

The vendor patched the vulnerabilities.

How it was found

  1. Log in to the application with a super-administrator account.
  2. Send a crafted HTTP request to the 'company_list' page with a malicious 'name_filter' parameter.
  3. The application stores the parameter in a session variable and later concatenates it into a SQL query.
  4. The query is executed via a stored procedure, triggering the SQL injection.

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.

SQL injection is a type of attack where malicious input is inserted into a database query, tricking the database into running unintended commands. In this case, the application builds SQL queries by concatenating user-supplied parameters without proper parameter binding, even though it uses prepared statements elsewhere. An attacker who is already logged in as a super-administrator could exploit this to read or manipulate data in 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.

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.