Take the 2-minute tour ×
Information Security Stack Exchange is a question and answer site for Information security professionals. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 1 down vote accepted

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

alert(document.cookie)

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
add comment

Your Answer

 
discard

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.