id: openvpn-hhi

info:
  name: OpenVPN Host Header Injection
  author: twitter.com/Dheerajmadhukar
  severity: info
  description: A vulnerability in OpenVPN Access Server allows remote attackers to inject arbitrary redirection URLs by using the 'Host' HTTP header field.
  metadata:
    max-request: 1
  tags: openvpn,hostheader-injection,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/"
    headers:
      Host: "{{randstr}}.tld"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "https://{{randstr}}.tld/__session_start__/"
          - "openvpn_sess"
        part: header
        condition: and

      - type: status
        status:
          - 302
# digest: 4b0a004830460221009d7317d0234c9e0fd44f0548b6f93434e6af263a036841390d97604e31a6bf22022100e13a369ec9336590f0101af718670c3b48fb677c8a200ccdca2bd536315b1019:922c64590222798bb761d5b6d8e72950