Skip to content

Version bump: 1.0.1 - #80

Merged
arnaudsjs merged 1 commit into
masterfrom
issue/version-bump
Feb 24, 2020
Merged

arnaudsjs merged 1 commit into
masterfrom
issue/version-bump

Conversation

@arnaudsjs

Copy link
Copy Markdown
Contributor

No description provided.

@arnaudsjs
arnaudsjs merged commit 7286321 into master Feb 24, 2020
@arnaudsjs
arnaudsjs deleted the issue/version-bump branch February 24, 2020 14:37
inmantaci pushed a commit that referenced this pull request Oct 9, 2024
…h, and domain with out of bounds characters until version 0.6.0 (PR #5976)

# Description

closes security alert #80

## Impact
The cookie name could be used to set other fields of the cookie, resulting in an unexpected cookie value. For example, serialize("userName=<script>alert('XSS3')</script>; Max-Age=2592000; a", value) would result in "userName=<script>alert('XSS3')</script>; Max-Age=2592000; a=test", setting userName cookie to <script> and ignoring value.

A similar escape can be used for path and domain, which could be abused to alter other fields of the cookie.

## Patches
Upgrade to 0.7.0, which updates the validation for name, path, and domain.

## Workarounds
Avoid passing untrusted or arbitrary values for these fields, ensure they are set by the application instead of user input.

## References
jshttp/cookie#167
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant