When a Callback Form Became an Open Door a short story about a hospital workflow gone wrong
Two PHP form endpoints on a hospital site accepted unauthenticated POST requests without CSRF tokens or rate limiting, allowing anyone to submit fake patient inquiries at scale. An attacker could also trick a visitor's browser into submitting requests on their behalf, flooding the call-back queue and disrupting operations.
Published on osintteam.blog
I was doing routine testing on a hospital site. Nothing flashy just was going through their source code where i found 2 endpoints with php forms in them which i tried to access but failed as it said Forbidden
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
Likely the endpoints lacked authentication, CSRF protection, and rate limiting, so they accepted any POST request without verifying the sender or limiting volume.
Impact
An attacker could submit fake patient inquiries at scale, trick visitors into making unintended requests, and flood the call-back queue, causing operational disruption and reputational damage.
What the attacker needed
No account needed; Victim visits a malicious page (for CSRF); Knowledge of endpoint URLs
The fix
The endpoints should require authentication or session validation, add CSRF tokens and Origin/Referer checks, and enforce rate limiting with CAPTCHAs for unauthenticated flows.
How it was found
- Found two PHP form endpoints in the source code that returned 403 Forbidden when accessed directly.
- Tried bypassing the 403 with various tricks but failed.
- Sent a GET request directly to the endpoint using BurpSuite, which also returned 403.
- Changed the request method to POST and included the required form details, which returned a success message.
- Repeated the POST request rapidly many times; every request returned 200 OK.
- Created a CSRF proof-of-concept and confirmed there was no rate limiting.
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 hospital website had two forms that send callback requests. The server behind these forms did not check who was sending the request, did not use a security token to prove the request came from the real form, and did not limit how many requests could be sent. This meant anyone could write a script to send thousands of fake requests, or trick a visitor into sending one without knowing.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.