# SQL Injection in Terminal Tariff Group feature of SmartVista SVFE2 version 2.2.22 (CVE-2022-38616)

### CVE-2022-38616

**Exploit Title**: SQL Injection in Terminal Tariff Group feature of SmartVista SVFE2 version 2.2.22

**Date**: 26/07/2022

**Exploit Author**: Tin Pham aka TF1T of VietSunshine Cyber Security Services

**Vendor Homepage**: <https://www.bpcbt.com/> Affected Version(s): SmartVista SVFE2 version 2.2.22

**Description**: SmartVista SVFE2 version 2.2.22 and earlier are affected by an SQL Injection vulnerability. An authenticated users could inject SQL query to "UserForm:j\_id90" parameter (Description) in /SVFE2/pages/feegroups/tgrt\_group.jsf to dump all databases.

**Steps to reproduce**:

* An attacker requires an account on the SmartVista SVFE2. An attacker can use a quote character to break query string and inject sql payload to "UserForm:j\_id90" parameter (Description) in /SVFE2/pages/feegroups/tgrt\_group.jsf. Response data could help an attacker identify whether an injected SQL query is correct or not.
* Example of injecting SQL to "UserForm:j\_id90" parameter (Description):
  * 'or '1%' LIKE '1 -> Correct query -> Return all rows in current table
  * 'or '1%' LIKE '0 -> Wrong query -> Return 0 row


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tf1t.gitbook.io/mycve/smartvista/smartvista-svfe2/sql-injection-in-terminal-tariff-group-feature-of-smartvista-svfe2-version-2.2.22-cve-2022-38616.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
