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.02286
    epss-percentile: 0.81465
    cpe: cpe:2.3:a:finecms:finecms:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: finecms
    product: finecms
  tags: cve,cve2017,redirect,finecms,vuln

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: 4b0a00483046022100902e47c4374e638a60646d235af7e7073c43583141ec16c38203e9838e46a3de022100e24339c8ebbc4aa5e8bc2b3ab458e454b81a719c956d6ac7ecf691888a77dec5:922c64590222798bb761d5b6d8e72950