Skip to content

Synthetic ID cookie missing HttpOnly flag #411

@aram356

Description

@aram356

Summary

The synthetic_id cookie is set with Secure; SameSite=Lax but no HttpOnly. Any XSS on the publisher's page can exfiltrate this tracking identifier via document.cookie.

Refs

  • crates/common/src/cookies.rs lines 67-72 — create_synthetic_cookie format string

Recommendation

Add HttpOnly if client-side JS doesn't need to read this cookie directly (it already gets the value via the x-synthetic-id header).

Context

Production readiness audit — see #396

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions