How was i able to find privilege escalation.

So this is my first write up related to my findings hope you all can learn.

So, One day i join a program on Bugcrowd from their Joinable program list. It was a set of application which provide email services to the clients. I dont know why i didnt start hunting as soon as i joined the program but i left it for two months.

So the flow of the applications was as follow there was one application(Central admin) which controls all the clients data and infrastructure (like how much resource should be allocated to client, Shall services like SFTP should be enabled, user management of the client admin etc) so let it be called tier one. On the tier two was the client admin panel from which he can mostly manage users(like making user groups, adding and removing them, resetting their password and making user access policies) and on the final tier there was the email application.

So i was just using the application trying to understand its flow while traffic being proxied through burp. I noticed that the cookies of the tier one and tier two applications were alike but the tier three was using a JWT token.

Thus i thought, What if admin of one client can access the main admin panel?

So this is how i thought the flow of the two application could be! So i started burp, Open tier 2 application in one browser and tier 1 app in another. I traverse the whole tier 1 one application and capture all the API calls. It was almost 100 API calls for that(i might have missed some :P).

Then i took those and start replaying it in session of tier 2 admin. As the application was mature(kind of :)), Most of them gave the error User is authenticated but has no rights to perform this action.

But after some time i successfully found 11 endpoints where access control was not implemented correctly and was leaking sensitive data. At that time my initial doubt was confirmed that APIs from tier one and tier two applications are being processed by one server only.

This data included how my clients are there, their IP, domain name, CPU/RAM/HDD usage, licenses other clients had of, how many user profile other client had made with their ACL and other details and many more details were leaked.

So that is it. Hope you all liked it. You can find me on Twitter and LinkedIn.

Please feel free to ping me in case there is something missing.




Security Researcher

Love podcasts or audiobooks? Learn on the go with our new app.

Building a Large-scale Distributed Storage System Based on Raft

Figure 1. Data distribution of HDFS DataNode

Developers, Start Paying For Stuff, Will You? — Done

How to ensure PHP Code standards, quality, efficiency and discover possible bug points

Import a CSV transaction file into Quickbooks

C# | nameof Operator

Building custom blocks with ACF and register them in the Gutenberg.

Enlighten your garden with MicroPython

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Akshar Tank

Akshar Tank

Security Researcher

More from Medium

The Basics of Subdomain Takeovers

TryHackMe ‘Ignite’ Room Walkthrough

Writeup: CSRF vulnerability with no defenses @ Portswigger Academy

2FA Bypass on private bug bounty program due to CSRF token misconfiguration