iOS application does not destroy session upon logout.
The iOS app's logout request did not invalidate the server-side session, so the old session cookie remained valid. An attacker who captured that cookie could keep using it to access the victim's account.
- Fixed in 4 days
- Paid in 4 days
- Disclosed after 42 days
After a user logs out of the iOS application, the server should be destroying the user's session. However, this is not occurring in the iOS application.
When the log out request is made, the following request and response is sent and received from the server:
REQUEST:
POST /apn-unregister HTTP/1.1 Host: www.irccloud.com Proxy-Connection: keep-alive Content-Type: application/x-www-form-urlencoded Accept-Encoding: gzip, deflate Cookie: session=1.eaf395c450d6ad52023804d9846b7376 Accept-Language: en-us Accept: / Content-Length: 117 Connection: keep-alive User-Agent: IRCCloud/1.8 (iPhone; en; iPhone OS 6.1.6)
device_id=438a32983a261b01464b8c6cebf3630e8d0f5ca5cd004d973ebb40461ab890c9&session=1.eaf395c450d6ad52023804d9846b7376
device_id=438a32983a261b01464b8c6cebf3630e8d0f5ca5cd004d973ebb40461ab890c9&session=2.0b73bfd76e44eae93257c5c33d7c232c
RESPONSE:
HTTP/1.1 200 OK X-Frame-Options: SAMEORIGIN X-UA-Compatible: chrome=1 Strict-Transport-Security: max-age=31536000 server: Cowboy date: Fri, 11 Apr 2014 05:29:54 GMT content-length: 28 content-type: application/javascript
{"_reqid":0,"success":true}
The session identifer "1.eaf395c450d6ad52023804d9846b7376" is not destroyed and can be re-used over an over again. If this cookie is captured or leaked, an attacker would have persistent access to a victim's account.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the logout endpoint only unregistered the push device and issued a new session token without invalidating the old session on the server.
Impact
If the session cookie is captured or leaked, an attacker could have persistent access to the victim's account.
What the attacker needed
Attacker obtains the session cookie
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When you log out, the server should forget your session so the old cookie stops working. Here, the app asked the server to log out, but the server kept the old session alive. Anyone who stole that cookie could still act as you.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.