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

http:
  - raw:
      - |
        GET / HTTP/1.1
        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: 490a0046304402202aa4bdf6acd9b0dda315a4734cfcafbe504a8078187a553fba71bc5d570e59c402203c8427d37adbfef957a10d49eb025772b021a7ab0195d1419526116004814604:922c64590222798bb761d5b6d8e72950