# List all files in arbitrary folder in SmartVista Cardgen version 3.28.0 (CVE-2022-38614)

### CVE-2022-38614

**Exploit Title**: Business Logic lead to list all files in arbitrary folder in SmartVista Cardgen version 3.28.0

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

**Vendor Homepage**: <https://www.bpcbt.com/smartvista-solutions/>

**Affected Version(s)**: SmartVista Cardgen version 3.28.0

**Description**: At SmartVista Cardgen version 3.28.0, an authenticated user can abuse IGB Files (or OutfileService) feature to list and download all files in arbitrary folder by modifying value of PATH to target folder at System Directories feature

**Steps to reproduce**:

\- **Step 1**: At menu System -> System Directories, an authenticated user can modify IBGFormatter SERVICE (or OutfileService) to specific directory in PATH parameter.

\- **Step 2**: Access https\://\[URL]/svcl/pages/services/ibgformatter/ibgfiles.xhtml (menu CardGen -> Services -> IBG Formatter -> IBG Files) to see the result


---

# 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-cardgen/list-all-files-in-arbitrary-folder-in-smartvista-cardgen-version-3.28.0-cve-2022-38614.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.
