Skip to content
Info disclosure Disclosed report Beginner

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

The application issued a session cookie without the Secure flag, so the cookie could be sent over unencrypted HTTP. An attacker who can induce the victim to visit an HTTP URL within the cookie's scope could intercept the session token.

ashesh Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • Fixed in 4 months
  • Disclosed after 5 months

URL: https://s2.owncloud.com/

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

_session_id=0fdc40cc016d1e70b1567b0071e5dcd2; expires=Sat Aug 22 03:45:12 2015; path=/; domain=s2.owncloud.com; max-age=86387; 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 session cookie was configured without the Secure attribute, allowing it to be transmitted over unencrypted HTTP.

Impact

An attacker could intercept the session token if the user is induced to visit an HTTP URL within the cookie's scope, potentially leading to session hijacking.

What the attacker needed

Victim visits an HTTP URL in cookie scope; 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 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 monitoring the network could steal it and possibly hijack the session.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

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.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.