GHSA-xc7v-wxcw-j472 Memory Exposure in tunnel-agent
An attacker can expose memory contents by supplying numeric input to the proxy authentication value in tunnel-agent.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-xc7v-wxcw-j472?
GHSA-xc7v-wxcw-j472 is a vulnerability in tunnel-agent, published on 3 Jun 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Versions of tunnel-agent before 0.6.0 are vulnerable to memory exposure.
This is exploitable if user supplied input is provided to the auth value and is a number.
Proof-of-concept:
require('request')({
method: 'GET',
uri: 'http://www.example.com',
tunnel: true,
proxy:{
protocol: 'http:',
host:'127.0.0.1',
port:8080,
auth:USERSUPPLIEDINPUT // number
}
});
Recommendation
Update to version 0.6.0 or later.
Which versions are affected by GHSA-xc7v-wxcw-j472?
2 open source packages ship an affected version, including tunnel-agent.
| Package | Affected | Fixed in |
|---|---|---|
tunnel-agent npm | All versions | 0.6.0 |
tunnel-agent npm | All versions | 0.6.0 |
How do I fix GHSA-xc7v-wxcw-j472?
Upgrade tunnel-agent to 0.6.0 or later.
Is GHSA-xc7v-wxcw-j472 being exploited?
There is no known exploitation of GHSA-xc7v-wxcw-j472 in the wild and no public exploit code.