0% found this document useful (0 votes)
117 views8 pages

Brute Forcing User IDS Via CSRF To Delete All Users With CSRF Attack

The document describes how an attacker was able to brute force and delete all user accounts from an application using a CSRF attack. It notes that the application did not implement CSRF protection on its "delete user" endpoint. It also explains that after determining user IDs were not leaked, the attacker was able to brute force the 5-digit numeric IDs and send a CSRF script to automatically delete all existing users.

Uploaded by

Ak
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
117 views8 pages

Brute Forcing User IDS Via CSRF To Delete All Users With CSRF Attack

The document describes how an attacker was able to brute force and delete all user accounts from an application using a CSRF attack. It notes that the application did not implement CSRF protection on its "delete user" endpoint. It also explains that after determining user IDs were not leaked, the attacker was able to brute force the 5-digit numeric IDs and send a CSRF script to automatically delete all existing users.

Uploaded by

Ak
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Brute Forcing User IDS via CSRF To

Delete all Users with CSRF attack.


Armaan Pathan Follow
Mar 12 · 2 min read

While testing an application, there was a module “Delete User” in which an


admin can delete any user.

If you notice in the request, there is no CSRF Token/Protection


implemented into delete user request.

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
This was very easy CSRF that an attacker can send form to admin and can
delete the user from an application.

Simple CSRF PoC to Delete User

But again if you notice that request contains the user id. My challenge was
to gure out that if an application user ids at any end points but i found that
there was no user ID leakage.

As it was 5 digit numeric ID, It was easy to brute force,

From a research i got the blog post in which an attacker has brute forced the
IDs with the help of click jacking.

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Client-side CSRF Token Brute Forcing
While playing around with some CSRF examples the idea of client-
side CSRF token brute forcing came into my head. I'd…
pwndizzle.blogspot.in

Now Challenge is that an application was using X-Frame Options Header


so I was not able to load an application into frame to brute force the IDS
.

I tried with XmlHTTPRequest, But again an application was validating


the ORIGIN so in this case XHR dint work for me.

Then I tried by throwing request into iframe target.

In this case I was not able to view the response as response had X-Frame-
Option Header which application was validating.But i was able to send the
request

So I made a CSRF Script which brute forces the USER IDS and deletes all
the existing Users with CSRF from an application

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
And When I sent this PoC to victim (admin) , I was able to delete all Existing
users from an application.

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Thanks guys for reading.
Have a great day ahead.

Security Hackerone Bug Bounty Bugcrowd Owasp

267 claps

WRITTEN BY

Armaan Pathan Follow

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
See responses (1)

More From Medium

Related reads

Open Redirects & Security Done Right!


Akshay ‘Ax’ Sharma
Jun 19, 2018 · 3 min read 490

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Related reads

Chinese Hackers Back Beijing’s Authoritarian


Pals
Foreign Policy in Foreign Policy
Jul 30, 2018 · 7 min read 97

Related reads

Diving into unserialize(): Magic Methods


Vickie Li in The Startup
Sep 29 · 4 min read 110

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Discover Medium Make Medium yours Become a member
Welcome to a place where words matter. Follow all the topics you care about, and Get unlimited access to the best stories on
On Medium, smart voices and original we’ll deliver the best stories for you to your Medium — and support writers while
ideas take center stage - with no ads in homepage and inbox. Explore you’re at it. Just $5/month. Upgrade
sight. Watch

About Help Legal

Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD

You might also like