Closed Bug 1906914 Opened 1 year ago Closed 1 year ago

Fix the max-age attribute parsing

Categories

(Core :: Networking: Cookies, defect, P2)

defect

Tracking

()

RESOLVED FIXED
130 Branch
Tracking Status
firefox130 --- fixed

People

(Reporter: baku, Assigned: baku)

Details

(Whiteboard: [necko-triaged])

Attachments

(1 file)

The current max-age attribute handling is broken in several ways:

  • It does not ignore the attribute if the value contains invalid chars
  • the computed expiration is let overflow with big max-age values
  • there are no warning messages when the values are invalid
  • it does not mark the cookie as session-only with invalid values
Assignee: nobody → amarchesini
Status: NEW → ASSIGNED
Whiteboard: [necko-triaged]
Severity: -- → S3
Priority: -- → P2
Pushed by amarchesini@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1cc10daba8f6 Fix the max-age cookie attribute parser, r=edgul,devtools-reviewers,nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: