When ‘Dead’ Pets Come Back to Life: A Bug I Found on a Pet Platform
The platform's UI hid editing options for inactive pets, but the backend did not enforce the inactive state, so an attacker could rename an inactive pet and flip it back to active via API requests. This allowed feature abuse and data integrity issues, though only on the attacker's own pets.
Ever marked a pet as inactive, thinking it’s “retired for good”… only to find you can still rename it… and even bring it back to life? 😳
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 server did not validate that a pet was active before allowing updates, relying only on the UI to hide editing options.
Impact
An attacker could only affect their own pets, but this could mess with data integrity, allow feature abuse, and cause unexpected system behavior if pet status is tied to rewards or analytics.
What the attacker needed
A user account; ability to intercept API requests
The fix
The server should validate that a pet is active before allowing updates, rather than relying on the UI to hide editing options.
How it was found
- Create a test pet profile.
- Mark the pet as inactive via the UI, which removes editing options.
- Intercept the update request using a proxy tool.
- Modify the request to rename the pet while keeping it inactive.
- Send the request; the backend accepts it.
- Flip the pet back to active via the API and refresh the UI to see full access restored.
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 website's user interface (UI) is what you see and click, but the real rules should be checked by the server, the computer that stores the data. Here, the UI hid the edit button for inactive pets, but the server still accepted changes if you sent the request directly. This means anyone could bypass the 'inactive' status for their own pets.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.