Skip to content
Business logic Write-up Intermediate

How I Found an Application Resurrection Vulnerability (Deletion B

A lower-level app administrator could replay a previously captured edit request to bring back an application that an organisation owner had deleted. The backend checked the user's permission to edit but not whether the application was still active, so the deleted app was restored.

Hamzadz38 Follow

Published on medium.com

Bug Bounty

Hamzadz38, on medium.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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 4 min read.

Context

The target is described only as TARGET's application management backend. The feature in question is application metadata editing: an organisation administrator can create applications inside an organisation, and users with the App Admin role can modify an application's details, for example its name, through the UI. The backend endpoint that handles those edits is:

Text
/account/<ACCOUNT_ID>/app/<APP_ID>

The same backend also handles deletion of an application by the organisation owner. The write-up is about what happens to the edit endpoint once the application it points at has been deleted.

Setup

Two accounts are used, with different privilege levels:

Account Role
Account A Organisation Owner / Administrator
Account B Invited user granted the lower-level App Admin role

The only tool named is Burp Suite, with Repeater used to hold and replay the captured edit request. No versions are given. The precondition is that Account B has a legitimate, working edit request for an application that Account A is later able to delete.

Finding it

The researcher was looking at access control and state management, and specifically at lifecycle transitions: what happens to downstream permissions and to pending API requests when an object is deleted. Deleting an application removes it from the frontend UI, rendering it inaccessible via standard navigation. The backend edit endpoint, however, checked whether the caller was authorised to modify the application without checking whether the application was still in an active lifecycle state.

Exploitation

Step 1: Set up the roles

Account A creates an organisation and an application, and invites Account B as an App Admin.

Step 2: Capture a baseline edit request

Account B modifies the application name in the UI. The legitimate HTTP edit request is captured in Burp Suite and sent to Repeater. The report describes this as a POST/PUT edit request but does not print the raw request, so the exact method, headers and body are not shown.

Step 3: Delete the application

Account A, as Organisation Owner, deletes the application from the dashboard.

Step 4: Confirm the deletion

Both accounts confirm the application is gone. Navigating directly to its URL returns an error:

Text
Could not obtain App data because of a technical problem. Please contact support.

Step 5: Replay the stale request

Account B returns to Burp Repeater and replays the previously captured edit request against the deleted <APP_ID>.

Step 6: Read the response

The backend did not return 404 Not Found or 410 Gone. It returned 200 OK with the application payload:

HTTP
HTTP/1.1 200 OKContent-Type: application/json
JSON
{  "app_id": "12345",  "name": "Resurrected_App_Name",  "created_at": "2026-08-15T04:26:00Z",  "status": "active"}

The response shows the application back in an active status with the name supplied by the replayed edit. Refreshing the UI showed the application restored into an operational state, so Account B had effectively overridden the deletion enforced by the Organisation Owner.

The report summarises the sequence as:

Text
[Account A] Deletes Application                                                      |[Account B] Replays Old Request                                                      |[Result] Application Restored   <

Root cause

The backend authorisation layer checked whether Account B had rights to modify the application, but lacked a secondary check ensuring the resource was not soft-deleted or marked inactive. Authorisation was therefore evaluated against the caller's role only, not against the current state of the object being modified. Because the edit endpoint accepted the write, access was restored and the deleted application was resurrected.

Impact

A user holding only the lower-level App Admin role can bring back an application that an Organisation Owner has deleted, by replaying a modification request captured before the deletion. The restored application is operational again, and the response returns the name Resurrected_App_Name. The report frames this as a business logic inconsistency between organisation-level privileges and application-level permissions: the higher-privileged account's deletion decision is overridden by a lower-privileged account. The write-up does not enumerate further consequences beyond the restoration itself.

Fix

The report states the fix as strict state validation in backend endpoints before applying updates:

Text
IF application.is_deleted == True: RETURN 404_NOT_FOUND

In other words, backend endpoints should check whether the application is deleted before applying updates.

Variants to test

  1. Replay edit requests after deletion on other resources. Capture a legitimate edit request for an object you can modify, have a higher-privileged user delete it, then replay. A positive result is a 200 OK with the object's payload and a status indicating it is active again, instead of 404 or 410.
  2. Replay other state-changing verbs. The report describes the edit as POST/PUT; try both, plus PATCH, against a deleted identifier. A positive result is any successful write that changes stored state on a deleted object.
  3. Check sibling lifecycle states. The root cause mentions soft-deleted or inactive resources. Test edits against objects that are suspended, archived or otherwise inactive, not only deleted. A positive result is an accepted update that moves the object back to an active state.
  4. Compare direct navigation with API access. After deletion, confirm the UI and direct URL fail, then call the API directly with a captured request. A positive result is the API succeeding where the UI path fails.
  5. Test role boundaries around deletion. Have a lower-privileged role replay edits after a higher-privileged role deletes the object, as in the report. A positive result is the lower-privileged user restoring an object the higher-privileged user removed.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 16 min read.

What happened, in plain words

Imagine a shared office where a manager can throw a document into the shredder, and an assistant can edit that document while it still exists. One day the manager shreds it, the assistant presses "save" on an old edit they had open, and the document reappears in the filing cabinet, fully usable. Nobody meant for that to happen: the shredder worked, the save button worked, but nobody checked whether the document was still supposed to exist before accepting the save.

That is the shape of the bug described here. A web application let an organisation administrator delete an application. A second user, with a lower-ranking role, had earlier captured a normal "edit this application" request. After the deletion, that user sent the same request again, and the server accepted it and brought the application back. The report calls this an application resurrection vulnerability, or a deletion bypass.

This article walks through the same ground as the technical write-up, but from zero. You only need to know how to use a browser. Every term is explained the first time it appears, and there is a glossary at the end.

The pieces you need to know first

Before the steps make sense, here are the basic ideas the report relies on.

  • Frontend and backend. A website has two halves. The frontend is what you see in the browser: pages, buttons, menus. The backend is the server behind it, which stores data and decides what is allowed. The frontend can hide a button, but hiding a button does not stop anyone from sending the same instruction to the backend by other means. Many security bugs live in that gap.
  • API. An API (application programming interface) is the set of addresses a frontend uses to talk to the backend. When you click "save" on a profile page, the browser sends a request to an API address, and the server replies with data. Think of it as the service counter of a shop: the shop window (frontend) shows what is on offer, but the counter (API) is where orders are actually placed.
  • Endpoint. An endpoint is one specific API address that does one specific job, such as "edit application" or "delete application". In this report the edit endpoint looks like this:
Text
/account/<ACCOUNT_ID>/app/<APP_ID>

The angle-bracket parts are placeholders. <ACCOUNT_ID> stands for the number or code identifying an account, and <APP_ID> stands for the one identifying an application. A real request would have actual values in those positions. The endpoint is the same address for every application; only the identifier at the end changes.

  • HTTP request and response. When your browser (or a tool) asks a server for something, it sends an HTTP request: a method (what kind of action), a path (which endpoint), headers (extra information) and sometimes a body (the data being sent). The server answers with an HTTP response: a status code (a number saying how it went), headers and usually a body with data. Common methods are GET (read something), POST (create or submit), PUT (replace) and PATCH (partially update). Common status codes are 200 OK (success), 404 Not Found (there is nothing there) and 410 Gone (it existed but has been deliberately removed).
  • JSON. A simple text format for structured data, used in most API responses. It looks like a list of labels and values in curly braces, for example "name": "something". It is just a way of writing data so both sides can read it.
  • Roles and permissions. A role is a named bundle of permissions. An Organisation Owner or Administrator is the top role in an organisation and can do things like delete applications. An App Admin is a lower role that can edit an application's details but is not meant to have the owner's powers. Permissions are the individual rights, such as "may edit this application" or "may delete this application".
  • Access control. The part of the backend that decides whether the person making a request is allowed to do what they are asking. Good access control checks two things: who you are and what role you hold, and whether the thing you are acting on is in a state where the action makes sense.
  • State and lifecycle. Many objects in an application have a life: created, active, maybe suspended, then deleted. The current stage is its state, and the sequence of stages is its lifecycle. A deleted application is still a state, just not an active one.
  • Soft delete. Instead of erasing a record from the database, many systems mark it with a flag such as "deleted" and hide it from normal use. The data is still there, which is convenient for recovery and auditing, but it means an endpoint that forgets to check the flag can still act on it.
  • Burp Suite and Repeater. Burp Suite is a tool that sits between your browser and the server so you can see and change the requests your browser sends. Repeater is one of its windows: you put a captured request in it and press send as many times as you like, editing it in between. Think of it as recording a phone order, then being able to replay the recording later, word for word.
  • Replay. Sending a request again that was captured earlier. Replaying is a standard way to test whether the server re-checks everything each time, or trusts that a request which was valid once is still valid later.
  • Business logic flaw. A bug where the code does what it was written to do, but the rules of the business are wrong or incomplete. Nothing crashes; the system simply allows a sequence of actions that should not be possible together. This report is one of those.

Context: the feature and the endpoint

The target is described only as TARGET's application management backend. The feature in question is editing an application's metadata, meaning its descriptive details such as its name. Inside an organisation, an administrator can create applications, and users holding the App Admin role can change an application's details through the user interface.

The backend endpoint that handles those edits is the one shown above:

Text
/account/<ACCOUNT_ID>/app/<APP_ID>

Read it as a postal address. The first part says which account (organisation) the request belongs to, and the last part says which application inside it is being edited. The same backend also handles deletion of an application by the organisation owner. The question the report asks is simple: once the application at that address has been deleted, what does the edit endpoint do with a request that still points at it?

Setup: two accounts, two levels of power

The test uses two accounts with different privilege levels:

Account Role
Account A Organisation Owner / Administrator
Account B Invited user granted the lower-level App Admin role

Account A is the boss: it can create the organisation, create an application and delete it. Account B is a helper: it is invited into the organisation and given the App Admin role, which lets it edit the application but not delete it.

The only tool named in the report is Burp Suite, with Repeater used to hold and replay the captured edit request. No versions are given. The precondition for the whole test is that Account B has a legitimate, working edit request for an application that Account A is later able to delete. In other words, the helper must first do a normal, allowed action, and that normal action is what gets saved for later.

Finding it: where the idea came from

The researcher was looking at access control and state management, and specifically at lifecycle transitions: what happens to downstream permissions and to pending API requests when an object is deleted. "Downstream permissions" means the rights that other users hold over that object; "pending requests" means requests that were prepared or captured while the object still existed.

Deleting an application removes it from the frontend UI, rendering it inaccessible via standard navigation. The backend edit endpoint, however, checked whether the caller was authorised to modify the application without checking whether the application was still in an active lifecycle state. It asked "is this person allowed to edit applications?" but not "does this application still exist in a usable state?".

Exploitation, step by step

Step 1: Set up the roles

Account A creates an organisation and an application, and invites Account B as an App Admin.

Why: the test needs a legitimate user with a legitimate permission. If Account B were not allowed to edit at all, a successful replay would just be an ordinary permission failure, not an interesting bug. The point is that Account B is doing something it is genuinely allowed to do.

Step 2: Capture a baseline edit request

Account B modifies the application name in the UI. The legitimate HTTP edit request is captured in Burp Suite and sent to Repeater.

Why: this gives you a known-good request, recorded exactly as the browser sent it, including whatever identifies the user and the application. Later, after the application is deleted, you can send that exact request again and see whether the server still accepts it. The report describes this as a POST/PUT edit request but does not print the raw request, so the exact method, headers and body are not shown. What matters for the reader is the idea: a normal edit, saved for later.

Step 3: Delete the application

Account A, as Organisation Owner, deletes the application from the dashboard.

Why: this creates the situation the test is about. The owner has made a deliberate decision that the application should no longer exist. The question is whether the backend enforces that decision everywhere, or only in the places the frontend happens to use.

Step 4: Confirm the deletion

Both accounts confirm the application is gone. Navigating directly to its URL returns an error:

Text
Could not obtain App data because of a technical problem. Please contact support.

Why: before claiming a bug, you check that the deletion actually took effect. Both accounts look, and the direct URL fails. The important part is that the normal way of reaching the application no longer works.

Step 5: Replay the stale request

Account B returns to Burp Repeater and replays the previously captured edit request against the deleted <APP_ID>.

Why: this is the actual test. The request was valid before the deletion. If the backend re-checks the application's state, it should now refuse; if it does not, it may process the edit. Repeater is used because it lets you send the same request again without retyping it, which is exactly what a replay is.

Step 6: Read the response

The backend did not return 404 Not Found or 410 Gone. It returned 200 OK with the application payload:

HTTP
HTTP/1.1 200 OKContent-Type: application/json

Line by line: HTTP/1.1 is the version of the HTTP protocol used for the reply. 200 OK is the status code meaning the request succeeded. Content-Type: application/json tells the client that the body of the response is JSON data, so it should be read as structured fields rather than as a web page. The report prints the status line and the content type together on one line; in a real response they would be on separate lines, with the status line first and the header below it.

JSON
{  "app_id": "12345",  "name": "Resurrected_App_Name",  "created_at": "2026-08-15T04:26:00Z",  "status": "active"}

Line by line: the outer curly braces hold one object, a set of labelled values. "app_id": "12345" is the identifier of the application the response is about. "name": "Resurrected_App_Name" is the application's name in the response. "created_at": "2026-08-15T04:26:00Z" is when the application was created, in a standard date-and-time format ending in Z, which means UTC time. "status": "active" is the lifecycle state, and it says the application is active again, not deleted.

The response shows the application back in an active status with the name supplied by the replayed edit. Refreshing the UI showed the application restored into an operational state, so Account B had effectively overridden the deletion enforced by the Organisation Owner. In plain terms: the helper pressed an old save button and undid the boss's deletion.

The report summarises the sequence as:

Text
[Account A] Deletes Application                                                      |[Account B] Replays Old Request                                                      |[Result] Application Restored   <

Read it left to right: first the owner deletes, then the lower-privileged user replays the old request, and the result is that the application is restored. The vertical bars are just separators between the three stages.

Root cause: why it worked

The backend authorisation layer checked whether Account B had rights to modify the application, but lacked a secondary check ensuring the resource was not soft-deleted or marked inactive. Authorisation was therefore evaluated against the caller's role only, not against the current state of the object being modified. Because the edit endpoint accepted the write, access was restored and the deletion was effectively undone.

An everyday comparison: a building security guard checks that you carry a valid staff card, but never checks whether the room you are walking into has been closed off. Your card is real, so you get in, even though the room was supposed to be out of bounds.

Impact: what an attacker gains

A user holding only the lower-level App Admin role can bring back an application that an Organisation Owner has deleted, by replaying a modification request captured before the deletion. The restored application is operational again, and the response returns the name Resurrected_App_Name. The report frames this as a business logic inconsistency between organisation-level privileges and application-level permissions: the higher-privileged account's deletion decision is overridden by a lower-privileged account. The write-up does not enumerate further consequences beyond the restoration itself.

In plain terms: the person with less power can quietly reverse a decision made by the person with more power, and the system will treat the result as normal.

Fix: how to stop it

The report states the fix as strict state validation in backend endpoints before applying updates:

Text
IF application.is_deleted == True: RETURN 404_NOT_FOUND

Line by line: IF starts a condition. application.is_deleted == True asks whether the application's deleted flag is set; the double equals sign means "is equal to", a comparison rather than an assignment. RETURN 404_NOT_FOUND says that if the condition is true, the server should answer with the 404 Not Found status instead of doing the update. In other words, backend endpoints should check whether the application is deleted before applying updates. The check belongs on the server, because anything the frontend hides can be bypassed by sending the request directly.

Variants to test

If you want to look for the same class of bug yourself, these are directions to try. Each one is a variation on the same question: does the server re-check the object's state on every request?

  1. Replay edit requests after deletion on other resources. Capture a legitimate edit request for an object you can modify, have a higher-privileged user delete it, then replay. A positive result is a 200 OK with the object's payload and a status indicating it is active again, instead of 404 or 410.
  2. Replay other state-changing verbs. The report describes the edit as POST/PUT; try both, plus PATCH, against a deleted identifier. A positive result is any successful write that changes stored state on a deleted object.
  3. Check sibling lifecycle states. The root cause mentions soft-deleted or inactive resources. Test edits against objects that are suspended, archived or otherwise inactive, not only deleted. A positive result is an accepted update that moves the object back to an active state.
  4. Compare direct navigation with API access. After deletion, confirm the UI and direct URL fail, then call the API directly with a captured request. A positive result is the API succeeding where the UI path fails.
  5. Test role boundaries around deletion. Have a lower-privileged role replay edits after a higher-privileged role deletes the object, as in the report. A positive result is the lower-privileged user restoring an object the higher-privileged user removed.

Timeline and outcome

The report gives a short disclosure timeline:

  • Aug 15, 2026: Vulnerability identified and reported with PoC video. A PoC, or proof of concept, is a recording or set of steps that demonstrates the bug actually happening.
  • Aug 15, 2026: Additional impact escalated (deletion bypass / state resurrection). Escalated means the researcher sent more information to show the issue was more serious than first described.
  • Aug 16, 2026: Support responded marking the report as a duplicate of a previously known issue. A duplicate means the same problem had already been reported by someone else, so this report was closed as a repeat rather than as a new finding.

The report closes with the lesson it wants readers to take away: even when a report is marked as a duplicate, highlighting logic flaws like resource resurrection is a useful reminder to always validate object states alongside user permissions on every API request. In plain terms: check not only who is asking, but also what they are asking about, and whether it is still in a state where the answer can be yes.

Glossary

  • API: the set of addresses a frontend uses to talk to a backend; the service counter where requests are actually handled.
  • Access control: the part of a system that decides whether a given user is allowed to perform a given action.
  • App Admin: the lower-level role in this report, able to edit an application's details but not to delete it.
  • Application (in this report): an object inside an organisation that has metadata such as a name and a lifecycle status.
  • Backend: the server-side part of a system that stores data and enforces rules.
  • Burp Suite: a tool that sits between browser and server so requests can be inspected, captured and changed.
  • Business logic flaw: a bug where the code works as written but the rules allow an unintended sequence of actions.
  • Content-Type: an HTTP header saying what kind of data the body contains, for example application/json.
  • Deletion bypass: getting around a deletion so that the deleted thing becomes usable again.
  • Downstream permissions: the rights other users hold over an object, which may be affected when the object changes state.
  • Duplicate (report): a report describing a problem that has already been reported, so it is closed as a repeat.
  • Endpoint: one specific API address that performs one specific job.
  • Escalation (of a report): sending further information to show an issue has more impact than first described.
  • Frontend: the part of a system you see and interact with in the browser.
  • GET: an HTTP method for reading something.
  • 410 Gone: an HTTP status meaning the resource existed but has been deliberately removed.
  • HTTP: the protocol browsers and servers use to exchange requests and responses.
  • HTTP request: a message asking a server to do something, with a method, a path, headers and sometimes a body.
  • HTTP response: the server's reply, with a status code, headers and usually a body.
  • JSON: a text format for structured data made of labelled values in curly braces.
  • Lifecycle: the sequence of states an object goes through, such as created, active, deleted.
  • Metadata: descriptive details about an object, such as its name.
  • 404 Not Found: an HTTP status meaning there is nothing at the requested address.
  • 200 OK: an HTTP status meaning the request succeeded.
  • Organisation Owner / Administrator: the top role in an organisation, able to create and delete applications.
  • PATCH: an HTTP method for partially updating something.
  • Payload: the data carried in the body of a request or response.
  • Permission: a single right, such as "may edit this application".
  • PoC (proof of concept): a demonstration that a bug really happens, often a video or a set of steps.
  • POST: an HTTP method for creating or submitting something.
  • PUT: an HTTP method for replacing something.
  • Repeater: the Burp Suite window where a captured request can be edited and sent again.
  • Replay: sending a previously captured request again.
  • Resurrection (resource resurrection): bringing a deleted object back into an active state.
  • Role: a named bundle of permissions, such as Organisation Owner or App Admin.
  • Soft delete: marking a record as deleted without erasing it, so it can still be found by code that forgets to check the flag.
  • State: the current stage of an object, such as active or deleted.
  • State validation: checking an object's current state before acting on it.
  • Status code: the number in an HTTP response saying how the request went.
  • Stale request: a request captured earlier that may no longer be valid because things have changed since.
  • UTC: a standard time reference used in timestamps, indicated by a trailing Z.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.