id: CVE-2012-4982

info:
  name: Forescout CounterACT 6.3.4.1 - Open Redirect
  author: ctflearner
  severity: medium
  description: |
    Open redirect vulnerability in assets/login on the Forescout CounterACT NAC device before 7.0 allows remote attackers to redirect users to arbitrary web sites and conduct phishing attacks via a URL in the 'a' parameter.
  impact: |
    An attacker can exploit this vulnerability to redirect users to malicious websites, leading to phishing attacks or the download of malware.
  remediation: |
    Apply the latest security patches or upgrade to a newer version of Forescout CounterACT to fix the open redirect vulnerability.
  reference:
    - https://www.exploit-db.com/exploits/38062
    - https://www.reactionpenetrationtesting.co.uk/forescout-cross-site-redirection.html
    - https://nvd.nist.gov/vuln/detail/CVE-2012-4982
    - http://www.reactionpenetrationtesting.co.uk/forescout-cross-site-redirection.html
    - https://github.com/tr3ss/newclei
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:M/Au:N/C:P/I:P/A:N
    cvss-score: 5.8
    cve-id: CVE-2012-4982
    cwe-id: CWE-20
    epss-score: 0.1931
    epss-percentile: 0.95113
    cpe: cpe:2.3:a:forescout:counteract:6.3.4.10:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: forescout
    product: counteract
  tags: cve,cve2012,redirect,forescout,counteract

http:
  - method: GET
    path:
      - "{{BaseURL}}/assets/login?a=https://interact.sh"

    matchers:
      - type: regex
        part: header
        regex:
          - '(?m)^(?:Location\s*?:\s*?)(?:https?://|//)(?:[a-zA-Z0-9\-_\.@]*)interact\.sh.*$'
# digest: 4b0a0048304602210092fa42c380c3852e144d2f6a2d93e8bf9eb9e2bdedd0ef45f1157910921b5545022100a3b96f11f67054c9cfb898727c9659c64f80f709363f3b9eb8f9bfc1098f2a5c:922c64590222798bb761d5b6d8e72950