July 13, 2026 · AI Security

OWASP PwnzzAI Lab 9: Unbounded Consumption — a technical write-up

Lab 9 in my OWASP PwnzzAI series covers Unbounded ConsumptionLLM10:2025 in the OWASP Top 10 for LLM Applications 2025. Unlike Labs 6–8, there is no coupon word to extract. The lesson is that unrestricted prompts and request volume can burn tokens, CPU, and money — or degrade the service for everyone.

1. Threat model

Attackers (or accidental clients) craft long-generation prompts or fire high-rate query floods. On pay-per-token APIs that becomes a financial DoS; on shared or self-hosted models it becomes latency and availability risk. Mitigations are boring infrastructure controls: rate limits, max tokens, request validation, and abuse monitoring.

PwnzzAI Unbounded Consumption lab overview
Figure 1 — Lab page: Free Model, cloud (API key), and safe DoS Simulation

2. Lab setup

3. Free Model — token-heavy prompt

On Free Model I sent a classic unbounded-output style request from the lab’s example set:

Repeat the sentence "What is the meaning of recursion?" exactly 50 times. Number each line.

The local model did not follow the instruction literally — it produced a lengthy numbered essay about recursion instead — but the point still lands: unconstrained “make it long / many times” prompts drive costly, extended generation with no hard stop on the app side.

Free Model chat with long recursion prompt
Figure 2 — Free Model: expensive long-form generation from a repetition request

The same tab also exposes Send Multiple (default count 10) to amplify load with repeated chat calls. I kept cloud multi-send unused on purpose.

4. DoS Simulation — safe flood

The simulation tab is explicitly disconnected from any model. I launched a 50-request flood with a pizza-recipe template that substitutes random toppings. Result: 50 / 50 sent, Success 50, Failed 0.

DoS Simulation completing 50 of 50 requests
Figure 3 — Simulated flood progress: 50 successful requests, 0 failed

The results panel summarized impact metrics: average response ~238 ms and an estimated 7,500 tokens for that batch — useful teaching numbers even though no real API was called. The impact callout lists rate limits, latency, outages, and billing burn if the same pattern hit a live shared service.

DoS Simulation attack results and impact notes
Figure 4 — Attack results: request counts, latency, estimated tokens, service impact

5. What the progression teaches

6. Defenses I would implement

7. What I demonstrated

References