Information Security Stack Exchange is a question and answer site for information security professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is a session cookie set without HttpOnly at first, but added before the client browser finishes rendering, still considered vulnerable? The scanner test I need to satisfy believes so, but is this a false positive?

share|improve this question
up vote 1 down vote accepted

This is easy to test. After the browser finishes rendering, open the JavaScript console and try this:


If you can't access the session id using the terminal, then an attacker cannot access it using XSS.

share|improve this answer
Didn't show up. Thanks! – tuson Jul 20 '13 at 6:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.