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.08658
    epss-percentile: 0.94426
    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: 490a00463044022002c0b6b3b466203ed6f6d93100dee557ab88f796e769979f2749cfff84a332ea02202030e90f1bdbb0c41e400bce11de6f6fc9be3b4551d37416c2fcca264c7be57c:922c64590222798bb761d5b6d8e72950