apps.owncloud.com: Session Cookie in URL can be captured by hackers
The PHP session identifier was in the URL query string, and all page links also included it. An attacker who obtains the URL via logs, bookmarks or the Referer header could capture the session token.
- Triaged in under an hour
- Fixed in 42 days
- Disclosed after 2 months
Session Cookie in URL URL: https://apps.owncloud.com/stories/feed+rss
Issue detail The URL in the request appears to contain a PHP Session token within the query string:
https://apps.owncloud.com/stories/feed+rss?id=42590&PHPSESSID=ee0624300266683a4625aabea344212a
Issue background Sensitive information within URLs may be logged in various locations, including the user's browser, the web server, and any forward or reverse proxy servers between the two endpoints. URLs may also be displayed on-screen, bookmarked or emailed around by users. They may be disclosed to third parties via the Referer header when any off-site links are followed. Placing session tokens into the URL increases the risk that they will be captured by an attacker.
Issue remediation Applications should use an alternative mechanism for transmitting session tokens, such as HTTP cookies or hidden fields in forms that are submitted using the POST method.
Note: In your webpage, all <a href= contain PHPSESSID URL Parameter, which further increases this risk.
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
Impact
An attacker who captures the URL could obtain the session token and potentially hijack the user's session, though the report does not demonstrate actual exploitation.
What the attacker needed
Attacker gains access to the URL
The fix
The application should transmit session tokens via HTTP cookies or hidden form fields instead of URL parameters.
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.
A session cookie is a secret code that keeps you logged in. Here, that secret code was put directly into the web address instead of being kept hidden. Anyone who sees the address (for example, in a shared link or server log) could use the code to pretend to be you.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.