You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Events: refuse an http Origin on an https request #769
Tighten the Events CSRF origin check in enforce_floor (packages/py/citry/citry/ext/events/csrf.py). It compares the host and port of the Origin header with the request's host, and ignores the scheme.
Proposal: also refuse an http:Origin on a request the adapter reports as https. Do not require the schemes to match in general: behind a proxy that ends TLS, the app sees http while the browser sends an https: origin, and a strict match would refuse every call.
Versioning: this refuses requests 1.0.x accepts, so the changelog must say so. Current browsers already refuse this case through Sec-Fetch-Site, so real browser traffic should not change. Tests should cover WSGI, ASGI and Django, including the proxy case.
Activity