GHSA-xc7v-wxcw-j472 Memory Exposure in tunnel-agent

Not scored Published

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.

PackageAffectedFixed in
tunnel-agent npmAll versions0.6.0
tunnel-agent npmAll versions0.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.

Sources

Is GHSA-xc7v-wxcw-j472 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free