Skip to content
CSRF Write-up Beginner

One-Click Account Deletion: How a Direct Link Can Instantly Delete an Authenticated User’s Account

An account-closure endpoint could be triggered simply by opening a direct URL containing a user identifier, with no confirmation step. An attacker who obtains that identifier from a booking-related response could craft a link that closes an authenticated victim's account when opened.

0xfalcon7 Follow

Published on medium.com

Ethical Hacking

0xfalcon, 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

During a bug bounty assessment, the researcher found an endpoint that could close an authenticated user's account simply by opening a direct URL. The report does not name the program or the application; the only host shown in the reproduction steps is the placeholder www.test.com, and the account-closure path is /account/close.

The feature involved is account closure. Normally a user would expect such an action to require an explicit confirmation step inside the application. Here the action was reachable through a plain GET-style link carrying a single identifier, pivot_uid, plus a parameter called frontage_iframe.

Setup

The researcher browsed the application while capturing traffic in Burp Suite, and used an authenticated test account to verify the behaviour. The report does not list versions, roles or any other tooling. The only precondition for the attack is that the victim is authenticated to the application when the crafted link is opened.

Finding it

The researcher reported the issue, but the triage team rejected the submission because one important question remained unanswered: How could an attacker obtain the victim's pivot_uid?

Rather than dropping the finding, the researcher went back to the application and continued exploring its functionality, browsing the site while monitoring requests and responses in Burp Suite. The next step was to search the HTTP history for the identifier. The required value turned up in a booking-related response, exposed under the name business_uid.

With that missing piece identified, the attack scenario became much clearer: the identifier needed to close an account was found in a booking-related response, exposed under the name business_uid.

Exploitation

Step 1: Capture traffic while browsing

Browse the application while capturing traffic in Burp Suite. This populates the HTTP history with the requests and responses the application makes during normal use.

Step 2: Search the history for the identifier

Search the HTTP history for business_uid. The goal is to find a response in which the application discloses the value that the closure endpoint expects as pivot_uid.

Step 3: Retrieve the identifier from the response

Inspect the corresponding response and retrieve the identifier. According to the report, this is a booking-related response and the value appears under the name business_uid.

Step 4: Build the closure URL

Use the identifier in the following URL:

HTTP
https://www.test.com/account/close?frontage_iframe=true&pivot_uid=<business_uid>

The path /account/close performs the account-closure action. The pivot_uid parameter carries the identifier taken from the booking response, and frontage_iframe=true is an additional parameter present in the link as the researcher used it.

Step 5: Open the URL as an authenticated user

Open the URL in a browser authenticated to the test account. The URL is opened in a browser authenticated to the test account.

Step 6: Observe the result

The account closure action is triggered without an additional confirmation step.

Root cause

The closure endpoint accepts the account identifier as a request parameter and performs the destructive action on a simple link visit, with no confirmation step. Because the identifier was found in a booking-related response as business_uid, an attacker does not need privileged knowledge to construct the link: the value is available from the application's own traffic.

The report does not describe the server-side implementation, so the exact reason the endpoint trusts the supplied identifier, and whether any CSRF or confirmation control exists elsewhere, is not stated.

Impact

An attacker who obtains the required identifier could craft a direct link that may trigger account closure when opened by an authenticated user, potentially causing loss of account access and disruption to associated business operations.

Fix

Based on the finding, the closure action should require an explicit confirmation step rather than firing on a link visit, and the identifier used to select the account should not be accepted from a request parameter in a way that lets a third party choose the target.

Variants to test

  1. Destructive actions on GET links. Look for account closure, email change, password reset or similar state-changing endpoints reachable by URL. A positive result is the action completing on a simple authenticated visit with no confirmation.
  2. Identifiers leaked in ordinary responses. Search captured traffic for identifiers used by sensitive endpoints (here business_uid matching pivot_uid). A positive result is the same value appearing in a response the user's browser receives during normal use.
  3. Parameter-name mismatches. When an endpoint expects one name and the application exposes the value under another, map the two. A positive result is a working link built entirely from values already present in the victim's traffic.
  4. Confirmation bypass. Check whether a confirmation step exists but can be skipped by calling the endpoint directly. A positive result is the action completing when the confirmation request is omitted.

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. 9 min read.

What happened, in plain words

A security researcher was taking part in a bug bounty programme. A bug bounty programme is a scheme where a company invites outside people to look for security problems in its website or app and report them, often for a reward. While testing one application, the researcher found something worrying: a single web address (a URL, the text you type into a browser's address bar) could close a logged-in user's account just by being opened. No button to press, no "are you sure?" question. Just open the link and the account closure is triggered.

The researcher reported it, but the team that sorts incoming reports (the triage team) rejected it. They had one fair question: how would an attacker ever know the special identifier the link needs? An identifier here is a short piece of text that names a specific account, a bit like a customer number on a bank statement. Without it, the link cannot point at anyone in particular.

So the researcher went back to the application, browsed it normally while recording all the traffic, and searched that recorded traffic for the identifier. It turned up in an ordinary response related to bookings, under a different name. That closed the gap: the value the closure link needs appeared in a booking-related response, so an attacker does not need inside knowledge to build the link.

This article walks through the same finding from the beginning, explaining each idea as it comes up.

Some background ideas first

Before the steps, a few everyday comparisons for the terms used throughout.

  • A web request and a response. When you open a page, your browser sends a request to a server (a computer that runs the website) and the server sends back a response, which is the page or the data behind it. Think of it as posting a letter with a question and receiving a reply.
  • An endpoint. An endpoint is one specific address on a server that does one specific job, like a particular counter in a large office building. The endpoint in this story is the one that closes accounts.
  • An API. An API is the set of endpoints and rules a program uses to talk to a server without a human clicking around. It is like a restaurant menu: a fixed list of things you can ask for, each with a name, and the kitchen knows what to do with each one.
  • A session and a cookie. When you log in, the server gives your browser a small piece of text, usually stored as a cookie, that proves who you are on later requests. It works like a wristband at an event: you show it once at the door, and after that staff let you in without asking for your ID again. Every request your browser makes carries that wristband, so the server treats the request as coming from you.
  • An identifier. A value that names one specific thing, such as one account. It is not a password; it is more like a label.
  • Burp Suite. A tool used by security testers that sits between your browser and the website and records every request and response. It is like a notebook that writes down every letter you post and every reply you get, so you can read them later.
  • HTTP history. Inside Burp Suite, the list of all those recorded requests and responses, in order.
  • A GET request. The ordinary kind of request your browser makes when you open a link or type an address. It is meant to fetch information, not to change anything. When a link that changes something (like deleting an account) works through a plain GET request, that is a warning sign, because links get opened casually: in emails, in chat messages, in other pages.
  • CSRF. Short for Cross-Site Request Forgery. It is the general name for the class of problem where another website, or a link someone sends you, causes your browser to make a request to a site you are logged into, using your own session, without you meaning to do it. The wristband analogy helps: if someone can make you walk through a door while wearing your wristband, the door opens for them too.
  • Account closure. The feature at the centre of this story: the action that shuts down a user's account. Normally you would expect the application to ask you to confirm before doing something this destructive.

The finding

During the assessment, the researcher found an endpoint that could close a logged-in user's account simply by opening a direct URL. The report does not name the programme or the application. The only host shown in the reproduction steps is the placeholder www.test.com, and the path for closing an account is /account/close.

The feature involved is account closure. Normally a user would expect such an action to require an explicit confirmation step inside the application. Here the action was reachable through a plain GET-style link carrying a single identifier, pivot_uid, plus a parameter called frontage_iframe. A parameter is a named value attached to the end of a URL, after a question mark, like the options you tick on a form.

Setting up

The researcher browsed the application while capturing traffic in Burp Suite, and used a logged-in test account to check the behaviour. The report does not list versions, roles or any other tooling. The only precondition for the attack is that the victim is logged in to the application when the crafted link is opened.

Finding it

The researcher reported the issue, but the triage team rejected the submission because one important question remained unanswered: How could an attacker obtain the victim's pivot_uid?

Rather than dropping the finding, the researcher went back to the application and continued exploring its functionality, browsing the site while monitoring requests and responses in Burp Suite. The next step was to search the HTTP history for the identifier. The required value turned up in a booking-related response, exposed under the name business_uid.

With that missing piece identified, the attack scenario became much clearer: the identifier needed to close an account is not secret, because the application itself returns it in ordinary booking traffic. In other words, the label the closure endpoint asks for is printed on a receipt the application hands to the user anyway.

Exploitation

Step 1: Capture traffic while browsing

Browse the application while capturing traffic in Burp Suite. This fills the HTTP history with the requests and responses the application makes during normal use.

Why: you cannot search for something you have not recorded. Browsing normally first gives you a realistic set of traffic to look through, the same traffic any ordinary user would generate.

Step 2: Search the history for the identifier

Search the HTTP history for business_uid. The goal is to find a response in which the application discloses the value that the closure endpoint expects as pivot_uid.

Why: the triage team's objection was that the attacker could not know pivot_uid. If the same value appears in ordinary traffic under another name, that objection falls away. Searching the recorded history is the quickest way to check.

Step 3: Retrieve the identifier from the response

Inspect the corresponding response and retrieve the identifier. According to the report, this is a booking-related response and the value appears under the name business_uid.

Why: this is the missing piece. Once you have the value, you can build the link the closure endpoint expects.

Step 4: Build the closure URL

Use the identifier in the following URL:

HTTP
https://www.test.com/account/close?frontage_iframe=true&pivot_uid=<business_uid>

Line by line, in plain words:

  • https://www.test.com is the site, shown here as a placeholder address.
  • /account/close is the path, the specific endpoint that performs the account-closure action.
  • ? marks the start of the parameters, the options attached to the request.
  • frontage_iframe=true is an additional parameter present in the link as the researcher used it. The report does not explain what it does.
  • & separates one parameter from the next.
  • pivot_uid=<business_uid> is the parameter that carries the identifier taken from the booking response. The angle brackets are a placeholder meaning "put the value you found here".

Step 5: Open the URL as a logged-in user

Open the URL in a browser logged in to the test account. The URL is opened in a browser logged in to the test account.

Why: this is the heart of the problem.

Step 6: Observe the result

The account closure action is triggered without an additional confirmation step.

Why it works

The closure endpoint accepts the account identifier as a request parameter and performs the destructive action on a simple link visit, with no confirmation step. Because the identifier was found in a booking-related response as business_uid, an attacker does not need privileged knowledge to construct the link: the value is available from the application's own traffic.

Impact

An attacker who obtains the required identifier could craft a direct link that may trigger account closure when opened by a logged-in user, potentially causing loss of account access and disruption to associated business operations.

Fix

Based on the finding, the closure action should require an explicit confirmation step rather than firing on a link visit, and the identifier used to select the account should not be accepted from a request parameter in a way that lets a third party choose the target.

Other places to look for the same pattern

  1. Destructive actions on GET links. Look for account closure, email change, password reset or similar state-changing endpoints reachable by URL. A positive result is the action completing on a simple logged-in visit with no confirmation.
  2. Identifiers leaked in ordinary responses. Search captured traffic for identifiers used by sensitive endpoints (here business_uid matching pivot_uid). A positive result is the same value appearing in a response the user's browser receives during normal use.
  3. Parameter-name mismatches. When an endpoint expects one name and the application exposes the value under another, map the two. A positive result is a working link built entirely from values already present in the victim's traffic.
  4. Confirmation bypass. Check whether a confirmation step exists but can be skipped by calling the endpoint directly. A positive result is the action completing when the confirmation request is omitted.

The bounty

From the original on medium.com

Glossary

  • API: the fixed set of endpoints and rules a program uses to talk to a server, like a menu of things you can ask for.
  • Account closure: the action that shuts down a user's account.
  • Bug bounty programme: a scheme where a company invites outside researchers to find and report security problems, often for a reward.
  • Burp Suite: a tool that sits between your browser and a website and records every request and response.
  • Cookie: a small piece of text a site stores in your browser, often used to remember that you are logged in.
  • CSRF (Cross-Site Request Forgery): a class of problem where another site or a link causes your browser to make a request to a site you are logged into, using your own session, without you meaning to.
  • Endpoint: one specific address on a server that does one specific job.
  • GET request: the ordinary kind of request a browser makes when you open a link or type an address, meant to fetch information rather than change anything.
  • HTTP history: the list of recorded requests and responses inside Burp Suite.
  • Identifier: a value that names one specific thing, such as one account; a label, not a password.
  • Parameter: a named value attached to a URL after a question mark, like an option on a form.
  • Request and response: the message your browser sends to a server and the reply the server sends back.
  • Session: the state of being logged in, kept alive by a value such as a cookie that your browser sends with each request.
  • Triage team: the people who receive incoming bug reports and decide whether they are valid.
  • URL: the address of a page or endpoint, the text you type into a browser's address bar.

More by 0xfalcon7

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.