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.08919
    epss-percentile: 0.92691
    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,vuln

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