Skip to content

Latest commit

 

History

History
65 lines (34 loc) · 2.85 KB

3. IDOR + JWT Token - Edmodo All Users Private Information Disclosure.md

File metadata and controls

65 lines (34 loc) · 2.85 KB

🔰 IDOR + JWT Token - Edmodo All Users Private Information Disclosure

Disclosure of 100 million+ Edmodo Users Private Information using IDOR + non-Expired JWT Token

IDOR + JWT Token - Edmodo All Users Private Information Disclosure

Edmodo platform is one of the largest and most active learning community platforms in the world with over 100 millions+ registered users.

The Story begins here...

After Reporting CORS Exploitation, i stopped my hunting on the Edmodo platform.

After about a month and a half, when i was scrolling up and down my info.txt file on my laptop. I clicked on the link that I saved:

https://api.edmodo.com/profiles/user_id?param1=&param2=&access_token=eyJ0eXabcdefghijklmnopqrstuvwxyz.eyJpYXabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz.70VwMabcdefghijklmnopqrstuvwxyz

The link opened and my account details were displayed. This means that the access_token was still alive.

So, before i do anything, i changed my user_id to another user_id.

and BOOM..!!

Now, i able to see private information of another/all users of Edmodo Account. (like: email address, home address, city, zip code, state, country, latitude, longitude, created date, role, about, etc.. etc…)

After performing IDOR, I came across this JWT token,

Edmodo API uses this JWT for authentication purposes.

understanding of JWT working on Edmodo API - Access token as a parameter

JWT token consist of three parts separated by dots :

[Header.Payload.Signature] = access_token=eyJ0eXabcdefghijklmnopqrstuvwxyz(.)eyJpYXabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz(.)70VwMabcdefghijklmnopqrstuvwxyz

After decoding this, Payload part claims the expiration time is 24h. "expires_in": 86400

But, since i used this token after a month and a half, it was still alive.

Impact : So if this token is compromised from users account, attackers will able to see their personal data for a long time (even after IDOR issue is resolved)


Timeline:

Sep 24, 2017 : Reported as additional info

Oct 12, 2017 : Bug Patched [Access Token validation - i.e. After 24 hours, JWT will not be accepted for processing]


Happy Hunting…!!! 🔱


Next Post 🔰 : Edmodo Students-Teachers Private Information Disclosure - IDOR & CORS Exploitation