It is possible to produce a cross site scripting attack by directly injecting javascript code in the cookies, hence to prevent against those attacks cookie must first be sanitized by using filter_xss() function.

CommentFileSizeAuthor
#2 cookie-sanitization-2989102-2.patch1.01 KBguptahemant

Comments

guptahemant created an issue. See original summary.

guptahemant’s picture

StatusFileSize
new1.01 KB

Here is a patch attached to resolve the mentioned issue.

Please review

Thanks

guptahemant’s picture

Assigned: guptahemant » Unassigned
Status: Active » Needs review
justindodge’s picture

Thanks for the patch! This was fixed over in #2675752: PHP Notice if cookies not enabled with a patch I just committed to 7.x-1.x

justindodge’s picture

Status: Needs review » Closed (duplicate)