Implements OWASP audit recommendations P1-P3: P1 - Two-factor authentication (TOTP) mandatory for admins: - better-auth twoFactor plugin; new two_factor table + user flag (migration 0010, MUST run before deploying the app) - requireAdmin throws TWO_FACTOR_REQUIRED without a finished setup; pages redirect to the new /zwei-faktor wizard which uses a weak guard (allowWithoutTwoFactor) so admins can never lock themselves out. Wizard lives outside /admin to avoid layout redirect loops. - login flow handles twoFactorRedirect and asks for the TOTP code; backup codes are shown once during enablement P2 - Step-up for destructive operations (ASVS 2.5.4): - hardDeleteEditorialAction and resetUsageDataAction reject sessions older than 15 minutes (SESSION_STALE) with actionable German messages instead of throwing opaque digests P3 - Password policy (NIST 800-63B): - minimum length raised from 8 to 12 plus common-password denylist, enforced for registration AND reset/change via a before-hook
83 lines
1.6 KiB
JSON
83 lines
1.6 KiB
JSON
{
|
|
"version": "7",
|
|
"dialect": "postgresql",
|
|
"entries": [
|
|
{
|
|
"idx": 0,
|
|
"version": "7",
|
|
"when": 1786299825190,
|
|
"tag": "0000_initial",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 1,
|
|
"version": "7",
|
|
"when": 1786303607054,
|
|
"tag": "0001_editorial_approval_notice",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 2,
|
|
"version": "7",
|
|
"when": 1786354215684,
|
|
"tag": "0002_accounting_intents",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 3,
|
|
"version": "7",
|
|
"when": 1786358492749,
|
|
"tag": "0003_stream_delivery",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 4,
|
|
"version": "7",
|
|
"when": 1786363479515,
|
|
"tag": "0004_download_history_indexes",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 5,
|
|
"version": "7",
|
|
"when": 1786379282947,
|
|
"tag": "0005_rate_limits",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 6,
|
|
"version": "7",
|
|
"when": 1786410282719,
|
|
"tag": "0006_chubby_screwball",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 7,
|
|
"version": "7",
|
|
"when": 1786410724623,
|
|
"tag": "0007_amused_franklin_storm",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 8,
|
|
"version": "7",
|
|
"when": 1786411419497,
|
|
"tag": "0008_overjoyed_wrecking_crew",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 9,
|
|
"version": "7",
|
|
"when": 1786455754414,
|
|
"tag": "0009_usage_created_at_index",
|
|
"breakpoints": true
|
|
},
|
|
{
|
|
"idx": 10,
|
|
"version": "7",
|
|
"when": 1787617368189,
|
|
"tag": "0010_two-factor",
|
|
"breakpoints": true
|
|
}
|
|
]
|
|
} |