Pulse Secure File disclosure, clear text and potential RCE
Pulse Secure had a path traversal flaw that let an attacker read arbitrary files, including a database storing cleartext credentials. With those credentials an attacker could log in and then exploit a post-authentication vulnerability to achieve remote code execution.
Originally disclosed on HackerOne
- Triaged in under an hour
- Fixed in 3 months
- Disclosed after 4 months
Summary: Pulse Secure has two main vulnerabilities that allow file disclosure and post auth RCE Description: CVE-2019-11510 is a file disclosure due to some normalization issues in pulse secure. I was able to reproduce this by grabbing in the etc/passswd. https://$hax/dana-na/../dana/html5acc/guacamole/../../../../../../etc/passwd?/dana/html5acc/guacamole/#
Though the impact of that is very limited, medium to high sec at best. From here we can grab a specific file.
The file /data/runtime/mtmp/lmdb/dataa/data.mdb contains clear context passwords and usernames, when a user logs in from here we can then access the Pulse secure instance. I stopped here due to not wanting to break the rules of engagements but from here I would log in then exploit a Post auth exploit.
Here's a list of files that an attacker would instantly hit /data/runtime/mtmp/system /data/runtime/mtmp/lmdb/dataa/data.mdb /data/runtime/mtmp/lmdb/dataa/lock.mdb /data/runtime/mtmp/lmdb/randomVal/data.mdb /data/runtime/mtmp/lmdb/randomVal/lock.mdb
Impact
Critical
Step-by-step Reproduction Instructions
We can only do this using due to browsers messing up the exploit
curl --path-as-is -k -D- https://████████/dana-na/../dana/html5acc/guacamole/../../../../../../data/runtime/mtmp/lmdb/dataa/data.mdb?/dana/html5acc/guacamole/#
curl --path-as-is -k -D- https://████████/dana-na/../dana/html5acc/guacamole/../../../../../../etc/passwd?/dana/html5acc/guacamole/#
curl --path-as-is -k -D- https://███/dana-na/../dana/html5acc/guacamole/../../../../../../data/runtime/mtmp/lmdb/dataa/data.mdb?/dana/html5acc/guacamole/#
Product, Version, and Configuration (If applicable)
Pulse Secure
Suggested Mitigation/Remediation Actions
Patch pulse immediately
Impact
An attacker will be able to download internal files and specifically target a local file which stores clear text passwords when a user login. This also an attacker to access highly sensitive internal areas and even can perform command execution
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 normalisation flaw in the Pulse Secure web component that failed to block directory traversal sequences in the URL.
Impact
An attacker could download internal files, including cleartext credentials, and potentially use them to log in and then execute commands on the server.
What the attacker needed
Network access to the Pulse Secure instance; curl with --path-as-is; a user must have logged in to populate the credential file
The fix
Pulse Secure should be patched immediately to address the path traversal and the post-authentication vulnerability.
How it was found
- Use curl with the --path-as-is option to prevent the client from normalising the path.
- Send a request to the vulnerable endpoint with traversal sequences to read the password file.
- Send a similar request to read the local database file that stores credentials.
- The author states they would use the recovered credentials to log in.
- The author states they would then exploit a post-authentication vulnerability.
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 path traversal bug lets someone trick a web server into reading files outside the folder it should serve, by using '..' in the URL. Here the attacker could download a file that stored usernames and passwords in plain text, so they could log in as a real user. The report also says that after logging in, another bug could let them run 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.