Skip to content
Misconfiguration Write-up Beginner

pWning resources.gcash.com using HTTP PUT method enabled vulnerability (Write Up)

The target server had the HTTP PUT method enabled without authentication, allowing an attacker to upload arbitrary files. The attacker could upload test files and overwrite the index file, leading to defacement.

Evan Ricafort Follow

Published on blog.evanricafort.com

{{media:0}}

Evan Ricafort, on blog.evanricafort.com

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 server had the HTTP PUT method enabled without proper restrictions or authentication.

Impact

An attacker could upload malicious files, overwrite existing files, or cause other disruption, potentially leading to data integrity loss, tampered configurations, or broken applications.

What the attacker needed

None

The fix

The issue was fixed by the vendor, though the exact method is not stated; best practice is to disable the HTTP PUT method unless needed, restrict it to authenticated users, and validate input.

How it was found

  1. Send a PUT request with a test HTML file to the target URL.
  2. Access the uploaded file via its URL.
  3. Verify that the file was uploaded and the vulnerability exists.

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.

HTTP PUT is a method that lets a client send a file to a server to create or replace it. If the server allows this without checking who is asking, anyone can upload files, including harmful ones. Here, the server did not restrict PUT, so the tester could upload a simple web page and even replace the site's main page.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

More by Evan Ricafort

View all

3 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.