fix(security): python-jose CVE-2024-33663 durch pyjwt ersetzt, Deps gepinnt
Security Audit / Python Dependency Audit (push) Has been cancelled
Security Audit / Node.js Dependency Audit (push) Has been cancelled

- security.py/dependencies.py/auth.py: jose -> pyjwt (unmaintained,
  Algorithm-Confusion-CVE). API-kompatibel (jwt.encode/decode gleich).
- requirements.txt: alle Versionen gepinnt (waren >=, jetzt == anhand
  aktueller 137-Installation) fuer reproduzierbare Deploys.
- nginx.conf: /docs + /openapi.json nur noch aus LAN erreichbar (waren
  oeffentlich, API-Struktur-Leak).

fail2ban auf 137+164 installiert (sshd + nginx-badbots + timemaster-auth
Jails), Configs nicht im Repo (Server-only, /etc/fail2ban/).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LTxkZEUdfgMxZvHPiZJ8bV
This commit is contained in:
2026-08-05 19:10:28 +02:00
co-authored by Claude Sonnet 5
parent 803e888638
commit edb727e09a
6 changed files with 79 additions and 33 deletions
+1 -1
View File
@@ -306,7 +306,7 @@ async def totp_login(
from app.core.config import settings
from app.core.security import decode_partial_token
from app.models.user import User
from jose import JWTError
from jwt import PyJWTError as JWTError
try:
user_id = decode_partial_token(data.partial_token)