Exploit databaseDownload repository ZIP
GH-ae034162545c09b5fdc606e6c082a52d
dimasma0305/cve-2026-111497-poc
Sources for CVE-2026-111497
61 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files3
dimasma0305/cve-2026-111497-pocRevision 452151d4945c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
lab/v24.22.0/undici-fetch/src/server.js
JavaScript · 985 bytes'use strict';
const http = require('node:http');
const { fetch } = require('undici');
function errorCode(error) {
for (let current = error; current; current = current.cause) {
if (current.code) return current.code;
}
return error.message;
}
http.createServer(async (request, response) => {
const url = new URL(request.url, 'http://lab');
if (url.pathname === '/health') return response.end('PONG\n');
if (url.pathname !== '/fetch') {
response.statusCode = 404;
return response.end('NOT FOUND\n');
}
const target = new URL(url.searchParams.get('url'));
if (target.hostname !== 'host.docker.internal' || target.port !== '4000') {
response.statusCode = 400;
return response.end('INVALID TARGET\n');
}
try {
const upstream = await fetch(target);
await upstream.arrayBuffer();
response.end('DONE\n');
} catch (error) {
response.statusCode = 502;
response.end(`ERR ${errorCode(error)}\n`);
}
}).listen(3000, '0.0.0.0');