id: CVE-2021-40859

info:
  name: Auerswald COMpact 5500R 7.8A and 8.0B Devices Backdoor
  author: pussycat0x
  severity: critical
  description: Auerswald COMpact 5500R 7.8A and 8.0B devices contain an unauthenticated endpoint ("https://192.168.1[.]2/about_state"), enabling the bad actor to gain backdoor access to a web interface that allows for resetting the administrator password.
  impact: |
    Unauthenticated attackers can gain unauthorized access to affected devices.
  remediation: |
    Apply the latest firmware update provided by Auerswald to fix the backdoor vulnerability.
  reference:
    - https://thehackernews.com/2021/12/secret-backdoors-found-in-german-made.html
    - https://nvd.nist.gov/vuln/detail/CVE-2021-40859
    - https://www.redteam-pentesting.de/en/advisories/-advisories-publicised-vulnerability-analyses
    - https://www.redteam-pentesting.de/en/advisories/rt-sa-2021-007/-auerswald-compact-multiple-backdoors
  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-2021-40859
    epss-score: 0.71979
    epss-percentile: 0.99369
    cpe: cpe:2.3:o:auerswald:compact_5500r_firmware:7.8a:build002:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: auerswald
    product: compact_5500r_firmware
    fofa-query: '"auerswald"'
  tags: cve2021,cve,iot,unauth,voip,auerswald,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/about_state"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"pbx"'
          - '"dongleStatus":0'
          - '"macaddr"'
        condition: and

      - type: word
        part: header
        words:
          - "application/json"

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100d54806bf392ade2a7ae7f816c3204764fa5ce06687c04d28c88687e5aaa1953302210096343eaa7965d2344037b1c6dc27c4555b066df8b63ca5955f0291453d04cc1f:922c64590222798bb761d5b6d8e72950