Vulnerability library
Security checkMay 13, 2024

Session Cookie Accessible for Subdomains

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

When the Domain attribute is present in the Set-Cookie header, browsers send the cookie to any subdomains of the specified domain. This can result in unintended data exposure and potential security risks, particularly if sensitive information is stored in the cookie.

Recommendation

To restrict cookie access to the current domain only, remove the Domain attribute from the Set-Cookie header. This ensures that the cookie is not accessible to subdomains, thereby reducing the risk of data leakage.

References

Could your website be exposed too?

SmartScanner can check your website for Session Cookie Accessible for Subdomains and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated May 13, 2024