Skip to content
Account takeover Disclosed report Beginner

apps.owncloud.com: SSL Session cookie without secure flag set

The application sets a session cookie without the Secure flag, so the cookie can be sent over unencrypted HTTP. An attacker who can induce the victim to make an HTTP request could intercept the session token.

ashesh Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • Fixed in 26 days
  • Disclosed after 26 days

URL: https://apps.owncloud.com/usermanager/login.php

Issue detail The following cookie was issued by the application and does not have the secure flag set:

PHPSESSID=27caghhkfjvuso3mmiqajqt2n4; path=/; HttpOnly The cookie appears to contain a session token, which may increase the risk associated with this issue. You should review the contents of the cookie to determine its function.

Issue background If the secure flag is set on a cookie, then browsers will not submit the cookie in any requests that use an unencrypted HTTP connection, thereby preventing the cookie from being trivially intercepted by an attacker monitoring network traffic. If the secure flag is not set, then the cookie will be transmitted in clear-text if the user visits any HTTP URLs within the cookie's scope. An attacker may be able to induce this event by feeding a user suitable links, either directly or via another web site. Even if the domain which issued the cookie does not host any content that is accessed over HTTP, an attacker may be able to use links of the form http://example.com:443/ to perform the same attack.

Issue remediation The secure flag should be set on all cookies that are used for transmitting sensitive data when accessing content over HTTPS. If cookies are used to transmit session tokens, then areas of the application that are accessed over HTTPS should employ their own session handling mechanism, and the session tokens used should never be transmitted over unencrypted communications.

The original report as published on HackerOne, by ashesh. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 application does not set the Secure attribute on the session cookie when issuing it.

Impact

An attacker could intercept the session token if the user is induced to make an HTTP request, potentially leading to session hijacking.

What the attacker needed

Victim visits an HTTP URL; attacker can monitor network traffic

The fix

The Secure flag should be set on all cookies used for transmitting sensitive data over HTTPS.

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 cookie is a small piece of data a website stores in your browser, often used to keep you logged in. The Secure flag tells the browser to send that cookie only over encrypted HTTPS connections. Without it, the cookie can travel over plain HTTP, where someone watching the network could steal it and take over the session.

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.

More by ashesh

View all

19 more disclosed reports, best first.

More from ownCloud

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.