3.3.4, Require __Http- or __Host-Http- prefix for HttpOnly cookies when applicable

Open
#3,331 6 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Quiet
Domain
security

Research direction

Start with requirement 3.3.4 and the issue's discussion of the __Http- and __Host-Http- cookie prefixes. Determine whether and how those prefixes should apply, including the caveat about __Secure-Http-. Done means the requirement wording and level clearly state the resulting policy.

Written by the indexing model from the issue text.

Description

1) Discussion ongoing V3 (prev V50)

Currently, we have this requirement:

# Description Level
3.3.4 Verify that if the value of a cookie is not meant to be accessible to client-side scripts (such as a session token), the cookie must have the 'HttpOnly' attribute set and the same value (e. g. session token) must only be transferred to the client via the 'Set-Cookie' header field. 2

There are apparently new __Http- and __Host-Http- prefixes for HttpOnly cookies, which protects the cookie from being overwritten by client-side JS code. Shall we require this usage somehow in this requirement?

Caveat: there is no __Secure-Http- prefix for some reason.

Dominant language
HTML
Stars
3.9k
Forks
865
Avg merge
3d 4h
Merged PRs (30d)
19

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OWASP/ASVS

All issues in OWASP/ASVS

Similar issues

More Security issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.