Skip to content
DoS Write-up Intermediate

DoS Vulnerability in the GWTUpload Library - LogicalTrust Blog

The GWTUpload library allows an attacker to control a delay parameter that causes the server thread handling an upload to sleep for up to 25 days. By sending many such requests, an attacker can exhaust the server's thread pool and cause a denial of service.

logicaltrust.net

Published on logicaltrust.net

GWT is a Java web framework and GWTUpload is a library extending it with easier file upload. We found a vulnerability allowing to abuse the upload process and cause a denial-of-service of a web application.

LogicalTrust, on logicaltrust.net

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The upload delay value is taken directly from the request and used in Thread.sleep without validation, and it is stored in a servlet field that persists across requests.

Impact

An attacker could exhaust the server's thread pool, causing a denial of service that lasts up to 25 days per thread, and the delay value persists for other users.

What the attacker needed

Ability to upload files; upload request at least 4097 bytes

The fix

The vulnerability was not fixed by the developer; a workaround is to remove the line that calls Thread.sleep in AbstractUploadListener.

How it was found

  1. Find the file upload functionality in the application.
  2. Capture the upload request in a proxy tool.
  3. Modify the request to include a large delay value.
  4. Send the request repeatedly until the server stops responding.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A web server uses a limited number of threads to handle requests. This library lets an attacker make a thread sleep for a very long time, so if enough requests are sent, all threads become stuck and the server cannot respond to anyone.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.