How I found an IDOR in my college ERP system ๐
Let me start with a โdisclaimerโ :P I am not a bug bounty hunter and I tend to align myself more towards pentetration testing and reverse-engineering so oppurtunites like these are rare for me and yeah and I did enjoy this experience and I hope you do too :)
What is an IDOR
โ โ โ โ โ โ โ โ โ โ
IDOR or Insecure Direct Object References occur when an application provides direct access to objects based on user-supplied input.As a result attackers can bypass authorization and access resources in the system directly.
Discovery
โ โ โ โ โ โ
One day I decided to download the provisional fee receipt issued by our college. Now those of you who are unaware our college uses an ERP (enterprise resource planning) system to manage non-academic tasks.
When I clicked on โprint reciptโ something like this opened upโฆ
Now as soon as I saw this URL and the corresponding Ref.No, I was curious so I decided to play with it ๐ค
My fee receipt pdf โ https://erp.iiita.ac.in/popup/fna/report/receipt/141/5
Target fee receipt pdf โ https://erp.iiita.ac.in/popup/fna/report/receipt/142/5
I decided to change the url and make 141 โ 142 and viola I was in ๐ฑ
If you are thinking this is the end to it you are mistaken ๐
I had a strange hunch and I decided to pursue it. I opened up an incognito window and browsed to the same URL(no authorization cookies stored) and again I was in ๐คฏ
Target fee receipt (incoginto)โ https://erp.iiita.ac.in/popup/fna/report/receipt/142/5
That means anyone can extract personally identifiable information for any other user absolutely with zero authentication with only knowledge of the URL ๐ข
Impact
โ โ โ โ โ
Now a provisional fee receipt pdf contains sensitive information among which student signature and official stamp which should be regarded confidential.
Reporting
โ โ โ โ โ โ
My first point of contact was my college professor who advised me to draft a formal mail
Within minutes I drafted a formal mail after completing the formalitiesโฆ
Fix and Reward
โ โ โ โ โ โ โ โ โ
I will be honest here I have reported few bugs in the past and the response time is usually quite high but this was an exception. ๐ฎ
It was really amazing to see how after a few mail exchanges this issue was quickly escalated, brought to proper attention and resolved in a swift ~5 hr span which is exceptionally fast o_O
Itโs fixed now so no use trying :P
Well happiness does not always lie in the monetary side of things ๐ค As a reward I did receive some kind words ๐ and an โofficialโ permission to pentest the ERP system ๐
Although this entire experience was in itself an โadventureโ for me since I was not sure how well it would be accepted but then it was ez ๐
*** You just read frostbite. Hope you enjoyed the article and suggestions are always welcome :)