Security-Fixes aus dem Framework-Review (lti XSS, Back-Channel-Replay, Transportfehler, DRF-Auth) - #13
Merged
Conversation
- lti: Reflected XSS in lti_login — die 400er-Antworten spiegelten iss/client_id aus GET-Parametern als text/html; jetzt text/plain (lti/v0.1.4, Regressionstest mit <script>-Issuer). - auth: Back-Channel-Logout prüft iat (Pflicht, max. OIDC_BACKCHANNEL_MAX_AGE = 300 s) und exp — ein abgefangenes Logout-Token war bisher unbegrenzt replaybar (auth/v0.1.1, vier neue Tests). - integrations: ai/translation_service fangen alle Transportfehler (OSError, HTTPException) statt sie als 500 durchzulassen; HTTPError-Body landet in der Meldung; Nicht-Objekt-JSON ist ein TranslationError (integrations/v0.2.2, sechs neue Tests, gemeinsamer _http-Helfer). - Template: DRF nur mit SessionAuthentication (BasicAuthentication öffnete jeden Endpunkt für Passwort-Raten gegen den Break-glass-Superuser). - CLAUDE.md: Draft-Release-Schritt dokumentiert; CHANGELOG: Einträge plus nachgetragenes lti/v0.1.3; __version__ mit pyproject synchronisiert. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This was referenced Oct 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Erster PR aus dem Framework-Review (2026-10-01): die als sicherheits-/betriebsrelevant eingestuften Befunde, alle im Code verifiziert.
Änderungen
lti_loginspiegelteiss/client_id(auch per GET) in 400er-Antworten mit Default-Content-Typetext/htmltext/plainvia_bad_request(); Regressionstest mit<script>-Issuer über GETiatnochexp→ abgefangenes Token unbegrenzt replaybar (erzwungener Logout als DoS, Spec §2.6)iatPflicht, max.OIDC_BACKCHANNEL_MAX_AGE(neues conf-Setting, Default 300 s),expmit 30 s Skew; 4 neue TestsConnectionResetError/IncompleteReadliefen als 500 durch; HTTPError-Body (echte Ursache) wurde verworfen; LibreTranslate-4xx hieß „unavailable“_http.py(TRANSPORT_ERRORS,http_error_detail);isinstance(data, dict)-Check; 6 neue TestsBasicAuthenticationaktiv → jeder Endpunkt per HTTP-Basic gegen den Break-glass-Superuser angreifbar, ohne Rate-Limit, am CSRF vorbeiDEFAULT_AUTHENTICATION_CLASSES = [SessionAuthentication](erkennbar hatte das bereits; abstimmbar/ausleihbar sollten nachziehen — steht im Changelog)lti/v0.1.3-Changelog-Eintrag nachgetragen,__version__mitpyprojectsynchronisiert (integrations/lti waren auseinander)Tests
Alle drei Paket-Suiten grün im Container (Django 5.1/DRF 3.15/pylti1p3 2.0): integrations 63, auth 29, lti 33.
Nach dem Merge
Tags
lti/v0.1.4,auth/v0.1.1,integrations/v0.2.2auf den Merge-Commit; dann Konsumenten-PRs (reiner Pin-Bump; für abstimmbar/ausleihbar zusätzlich die DRF-Auth-Zeile).Nicht in diesem PR
Die übrigen Review-Befunde (TipTap im Bundle, Template-Drift, auth-Boilerplate, toter Code) folgen in eigenen PRs. Nebenbefund: Der CHANGELOG führt seit Juli alle Releases unter „[Unreleased] (→ wird …)“ statt als abgeschlossene Abschnitte — Kandidat für den Cleanup-PR.
🤖 Generated with Claude Code