No-Rate limit of current password on delete account endpoint(https://www.xvideos.com/account/close)
The account deletion endpoint did not rate-limit attempts to confirm the current password, so an attacker with an already-authenticated session could brute-force the password and then delete the victim's account. The reporter notes the impact is very low because the attacker must already be logged in.
- Fixed in 2 hours
- Paid in 2 hours
- Disclosed after 18 days
Summary by the program
Lack of rate limiting on delete account section may lead to brute force of password. Anyway, the issue has a very low impact, since the user must already be logged to be able to request account close.
The report
Hi Team!!! This Attack happen when victim login in other device and forget to logout ,Then attacker can delete it's account by brute force the current password because current password has no-rate limit. After guessing current password attacker can easily delete the victim account. Steps To Reproduce: 1.Login in https://www.xvideos.com/ with right credentials 2.Navigate to Dashboard --> Account-> Delete my account and Personal Data 3.add random password in current password field 4.Capture the request and send it for fuzz you get a different response when you enter a right password.
**** Response in right password :- Too fast. Please try again in few seconds
Response of wrong password :-
Too fast. Please try again in few seconds is missing.
POC - I have attached a video poc in which I demonstrate the attack.
Impact
As Attacker I can delete victim account by brute force the victim current password, Due to no-rate limit on this endpoint.
Context
The target is www.xvideos.com, and the feature under examination is the account deletion flow at https://www.xvideos.com/account/close. That page lets a logged-in user close their account and delete their personal data. To protect the action, the form asks for the account's current password before the deletion is carried out.
The report is a low-severity finding: the current-password check on that endpoint has no rate limit, so the password can be guessed by brute force. The program's own summary is blunt about the limits: the issue has very low impact because the user must already be logged in to be able to request account closure.
Setup
The precondition is a logged-in session. The researcher's scenario is a victim who logs in on another device and forgets to log out, leaving an attacker in control of an authenticated session. No special tooling is named beyond a proxy capable of capturing a request and replaying it for fuzzing. No versions, headers or parameter names are given in the report.
Finding it
The researcher noticed that the current-password field on the delete-account form can be submitted repeatedly without the endpoint throttling the attempts. Because the response differs depending on whether the supplied password is correct, the field can be used as an oracle: submit candidate passwords in a loop and read the response to learn when the right one has been found. Once the current password is known, the attacker can complete the account deletion.
Exploitation
Step 1: Log in
Log in at https://www.xvideos.com/ with valid credentials. This establishes the session the rest of the attack depends on.
Step 2: Reach the deletion form
Navigate to Dashboard, then Account, then "Delete my account and Personal Data". This is the page at https://www.xvideos.com/account/close that asks for the current password.
Step 3: Submit a candidate password
Enter a random password in the current password field. This produces the request that will later be captured and replayed.
Step 4: Capture and fuzz
Capture the request and send it for fuzzing. The researcher reports that a correct password produces a different response from an incorrect one, which is what makes the brute force possible.
The two responses given in the report are:
**** Response in right password :-
Too fast. Please try again in few seconds
Response of wrong password :-
Too fast. Please try again in few seconds is missing.
In other words, the string Too fast. Please try again in few seconds appears in the response when the password is correct, and is absent when the password is wrong. That difference is the signal a fuzzer can key on: run a wordlist through the current-password field and flag every response containing the marker string. The report does not explain why that particular message accompanies a correct password; it only records the observed difference.
A video proof of concept demonstrating the attack is referenced in the report but is not reproduced here.
Root cause
The endpoint that validates the current password before closing the account does not limit how many attempts can be made. The report does not describe any server-side code, so the exact mechanism is not stated; what is clear is that repeated submissions are accepted and each one is evaluated, and that the outcome is distinguishable from the response body. The presence of the Too fast. Please try again in few seconds string on the correct-password path, and its absence on the wrong-password path, turns the check into a reliable oracle. The report states there is no rate limit on the current-password check, so an automated loop can keep guessing.
Impact
An attacker who already holds an authenticated session, for example because the victim logged in on a shared or other device and did not log out, can brute force the current password and then delete the victim's account. The program explicitly rates the impact as very low, because the attacker must already be logged in as the victim to reach the endpoint at all.
Fix
The measure the finding calls for is rate limiting on the current-password check at the delete-account endpoint, so that repeated guesses are throttled or blocked before a password can be recovered by brute force.
Variants to test
- Other sensitive forms that re-authenticate the user, such as email change, password change and account deletion on other sites: a positive result is that many wrong-password submissions are all evaluated and the response differs from the correct-password response.
- Any endpoint where a correct secret produces a different message, status code, length or timing: a positive result is a stable, observable difference that survives repeated sampling.
- Endpoints that return a throttle message only on one branch: a positive result is a marker string that appears for valid input and is absent for invalid input, as in this report.
Hunting notes
This class of bug hides in authenticated, low-traffic actions: re-authentication prompts, destructive operations and settings changes that are rarely exercised and therefore rarely rate limited. During recon, look for forms that ask for the current password and check whether the response body changes between valid and invalid input. The researcher showed a difference between the two responses and referenced a video proof of concept, and the program rated the issue low because the attacker needs an existing session. That framing, an oracle plus a precondition, is what a triager will weigh.
What happened, in plain words
A website called xvideos.com has a page where a logged-in user can close their account and delete their personal data. Before the site actually deletes anything, it asks you to type your current password, so that someone who happens to be sitting at your computer cannot wipe your account by accident.
The researcher found that this password check can be tried over and over again, as many times as you like, without the site slowing you down or blocking you. That is called a missing rate limit. Because the site also answers slightly differently when the password is right compared to when it is wrong, a computer program can keep guessing passwords and watch the answers until it finds the correct one. Once the password is known, the account can be deleted.
The program that received the report rated it low severity, and explained why in its own summary: to reach this page at all, the attacker must already be logged in as the victim. So the attack only works if someone else already has access to the account, for example because the victim logged in on another device and forgot to log out.
The pieces you need to know
Before walking through the steps, here are the ideas the report relies on, explained from scratch.
- A web page versus an endpoint. When you click around a website, your browser asks the server for pages. Some of those requests return a page you can see, and some just carry out an action and send back a short answer. The address that carries out the action is often called an endpoint. In this report the endpoint is
https://www.xvideos.com/account/close, the address behind the "delete my account" form. - A session and a cookie. When you log in, the server needs a way to remember you on the next request, because the web itself has no memory between requests. It gives your browser a small piece of data, usually stored as a cookie, which your browser sends back with every request. Think of it like a wristband at an event: you show it once at the door, and after that the staff let you back in without asking for your ID again. Anyone holding your wristband is treated as you.
- Re-authentication. Some sensitive actions ask you to prove who you are again, even though you are already logged in. This is the website equivalent of a bank asking for your PIN before a large transfer. The delete-account form does this by asking for your current password.
- Rate limiting. A rate limit is a cap on how often something can be done in a period of time. A real-world comparison: a cash machine that lets you try your card three times and then keeps the card. Without such a cap, someone can keep trying forever.
- Brute force. Brute force means trying many possibilities one after another until one works, instead of being clever. If a password has few possible values, or if you can try millions of guesses quickly, brute force becomes practical.
- Fuzzing. Fuzzing means sending lots of slightly different inputs automatically and watching what comes back. Here the researcher uses it to send many candidate passwords to the same request.
- An oracle. In security, an oracle is anything that tells you whether a guess was right or wrong. It does not have to say "correct"; it only has to behave differently. A door that clicks when the key fits is an oracle. In this report, the oracle is a difference in the text the server sends back.
- A proxy. A proxy is a tool that sits between your browser and the website, so you can see and copy the requests your browser makes. The report mentions capturing a request and replaying it, which is what such a tool lets you do.
The setup
The whole attack depends on one precondition: the attacker must already be logged in as the victim. The researcher's scenario is a victim who logs in on another device and forgets to log out, leaving that session open for someone else to use.
The report does not name any specific proxy tool, and it gives no version numbers, no HTTP headers and no parameter names. So the only things we know for certain are the page address, the form, and the two responses.
Finding it
The researcher noticed that the current-password field on the delete-account form accepts submission after submission without the server ever saying "slow down". Normally a site would count the attempts and start refusing them after a few, which is exactly what a rate limit is for.
The second ingredient is that the answer from the server is not the same in both cases. When the password is right, the response contains a particular sentence. When it is wrong, that sentence is missing. That difference is enough for a program to tell success from failure automatically, which turns the password field into an oracle.
Once the correct current password is known, the attacker can finish the deletion.
Exploitation, step by step
Step 1: Log in
Log in at https://www.xvideos.com/ with valid credentials. This is what creates the session, the wristband described above, that every later request carries. Without it, the delete-account page would simply refuse to work, because the server would not know who is asking.
Step 2: Reach the deletion form
Navigate to Dashboard, then Account, then "Delete my account and Personal Data". This is the page at https://www.xvideos.com/account/close that asks for the current password. The researcher goes there through the normal menus, exactly as a user would, to see the form and the request it produces.
Step 3: Submit a candidate password
Type a random password into the current password field and submit. The point of using a deliberately wrong password first is to produce a real request that can be looked at and copied. You cannot study a request until one has been made.
Step 4: Capture and fuzz
Capture that request with the proxy and send it for fuzzing. In plain terms: take the request the browser made, keep everything the same, and swap the password value for one candidate after another, automatically. The researcher reports that a correct password produces a different response from an incorrect one, and that is what makes the guessing loop possible.
The two responses given in the report are:
**** Response in right password :-
Too fast. Please try again in few seconds
Response of wrong password :-
Too fast. Please try again in few seconds is missing.
Line by line, in plain words:
- The first line is a heading the researcher wrote, saying that what follows is the response when the password is right.
- The second line is the text the server sends back in that case:
Too fast. Please try again in few seconds. - The next heading says that what follows is the response when the password is wrong.
- The last line says that the sentence
Too fast. Please try again in few secondsis missing from that response.
So the rule is simple: if the answer contains Too fast. Please try again in few seconds, the password was correct; if it does not, the password was wrong. A fuzzer can be told to run a list of candidate passwords through the field and flag every response that contains that marker sentence. The report does not explain why that particular message appears when the password is correct; it only records the difference that was observed.
A video proof of concept demonstrating the attack is mentioned in the report, but it is not included here.
Why it works
The endpoint that checks the current password before closing the account does not limit how many attempts can be made. What is clear is that repeated submissions are accepted and each one is evaluated, and that the result can be told apart from the response body.
The presence of the Too fast. Please try again in few seconds string on the correct-password path, and its absence on the wrong-password path, is what turns the check into a reliable oracle. The report states there is no rate limit on the current-password check, so an automated loop can keep guessing.
Impact
An attacker who already holds an authenticated session, for example because the victim logged in on a shared or other device and did not log out, can brute force the current password and then delete the victim's account. The program explicitly rates the impact as very low, because the attacker must already be logged in as the victim to reach the endpoint at all.
Fix
The measure the finding calls for is rate limiting on the current-password check at the delete-account endpoint, so that repeated guesses are throttled or blocked before a password can be recovered by brute force.
Variants to test
- Other sensitive forms that ask you to re-enter your password, such as changing your email address, changing your password, or deleting an account on other sites. A positive result is that many wrong-password submissions are all evaluated and the response differs from the correct-password response.
- Any endpoint where a correct secret produces a different message, status code, length or timing. A positive result is a stable, observable difference that survives repeated sampling.
- Endpoints that return a throttle message only on one branch. A positive result is a marker string that appears for valid input and is absent for invalid input, as in this report.
Hunting notes
This class of bug hides in logged-in, low-traffic actions: password re-entry prompts, destructive operations and settings changes that are rarely used and therefore rarely rate limited. During recon, look for forms that ask for the current password and check whether the response body changes between valid and invalid input. The researcher showed a difference between the two responses and referenced a video proof of concept, and the program rated the issue low because the attacker needs an existing session. That framing, an oracle plus a precondition, is what a triager will weigh.
Glossary
- Endpoint: the address on a server that carries out a particular action, such as
https://www.xvideos.com/account/close. - Session: the server's memory of who you are across many requests, usually tied to a cookie.
- Cookie: a small piece of data a site stores in your browser and your browser sends back with each request, so the server can recognise you.
- Re-authentication: asking a logged-in user to prove their identity again before a sensitive action.
- Rate limit: a cap on how many times an action can be performed in a given period.
- Brute force: trying many possible values one after another until one works.
- Fuzzing: automatically sending many variations of an input and observing the responses.
- Oracle: any observable difference that tells you whether a guess was right or wrong.
- Proxy: a tool placed between your browser and a website that lets you see, copy and replay requests.
- Response body: the content the server sends back, as opposed to the status code or headers.
- Status code: a number a server sends with its answer, such as 200 for success or 404 for not found.
- Severity: a rating of how serious a security issue is, here low.
- Triager: the person who reviews a submitted report and decides whether it is valid and how serious it is.
- Proof of concept (PoC): a demonstration that the attack actually works, often a video or a set of steps.
- Recon: the exploratory phase of looking around a target to find interesting features and weaknesses.