Various Low level Vulnerabilities
The report lists three low-level security misconfigurations: the X-XSS-Protection header is not enabled, cookies are set without the HttpOnly flag, and cookies are set without the Secure flag. An attacker could potentially access cookies via JavaScript or over unencrypted connections, but no actual exploitation is demonstrated.
Originally disclosed on HackerOne
- Fixed in under an hour
- Disclosed after 6 months
1.XSS protection Not Enabled: Example URL: https://block.io/js/secure/secrets.js?mtime=1412493238
Web Browser XSS Protection is not enabled, or is disabled by the configuration of the 'X-XSS-Protection' HTTP response header on the web server
The X-XSS-Protection HTTP response header allows the web server to enable or disable the web browser's XSS protection mechanism. The following values would attempt to enable it: X-XSS-Protection: 1; mode=block X-XSS-Protection: 1; report=http://www.example.com/xss The following values would disable it: X-XSS-Protection: 0 The X-XSS-Protection HTTP response header is currently supported on Internet Explorer, Chrome and Safari (WebKit). Note that this alert is only raised if the response body could potentially contain an XSS payload (with a text-based content type, with a non-zero length).
Ensure that the web browser's XSS filter is enabled, by setting the X-XSS-Protection HTTP response header to '1'.
2.Cookie set Without HTTPonly flag Example URL: https://block.io/users/sign_in
A cookie has been set without the HttpOnly flag, which means that the cookie can be accessed by JavaScript. If a malicious script can be run on this page then the cookie will be accessible and can be transmitted to another site. If this is a session cookie then session hijacking may be possible.Ensure that the HttpOnly flag is set for all cookies.
3.Cookie set without secure flag Example URL: https://block.io/users/password/new
A cookie has been set without the secure flag, which means that the cookie can be accessed via unencrypted connections.Whenever a cookie contains sensitive information or is a session token, then it should always be passed using an encrypted tunnel. Ensure that the secure flag is set for cookies containing such sensitive information.
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 web server is not configured to send the X-XSS-Protection header and to set the HttpOnly and Secure flags on cookies.
Impact
If a malicious script can be run on the page, cookies without HttpOnly could be stolen, and cookies without Secure could be intercepted over unencrypted connections, potentially leading to session hijacking.
What the attacker needed
A malicious script must run on the page; unencrypted connection for Secure flag issue
The fix
The server should set the X-XSS-Protection header to '1', and set the HttpOnly and Secure flags on all cookies, especially session cookies.
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.
This report points out three missing security settings on a website. The first is a browser feature that tries to block cross-site scripting (XSS) attacks, which is turned off. The other two are about cookies (small pieces of data stored by your browser) not being marked as inaccessible to scripts or as only sent over secure connections, which could let attackers steal them.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.