3x-ui/internal/web
Aleksey Fedorov 7367ff75cd
fix(2fa): accept display forms of the TOTP secret and never panic on a bad one (#7113)
gotp decodes the stored secret with strict base32 and panics when that fails,
so a 2FA secret saved through the settings API in lower case, grouped by
spaces, or not base32 at all turned every login and every attempt to turn 2FA
off into an HTTP 500. An empty secret had the opposite problem: the login
check accepted the code of an empty HMAC key, which anyone can compute.

VerifyWithSkew now normalizes the secret and verifies nothing for an empty or
non-base32 one, so secrets already stored in a display form work again.
Turning 2FA on through the settings update stores the normalized secret and
refuses one no authenticator could match.
2026-11-13 00:13:13 +01:00
..
controller fix(api): preserve omitted client fields in partial updates (#7042) 2026-11-05 18:06:16 +01:00
entity feat(hosts): give a host a pool of SNIs, random per config or shared (#6923) 2026-10-24 21:05:42 +02:00
global refactor: focused service files, leaf subpackages, and an internal/ layout (#5167) 2026-06-10 15:19:22 +02:00
job fix(traffic): restore quota-disabled inbounds when their traffic is reset (#6962) 2026-11-02 15:50:25 +01:00
locale fix(i18n): publish the translation bundle only once it is complete 2026-10-31 09:11:54 +00:00
middleware fix(web): bound the panel's open connections and share asset gzip 2026-11-01 01:01:38 +01:00
network fix(web): bound the panel's open connections and share asset gzip 2026-11-01 01:01:38 +01:00
runtime fix(node): count only values against the node-answer value cap 2026-11-01 13:14:46 +01:00
service fix(2fa): accept display forms of the TOTP secret and never panic on a bad one (#7113) 2026-11-13 00:13:13 +01:00
session fix(web): start a fresh session at login 2026-10-31 09:05:28 +00:00
translation feat(xray): explain what mux concurrency means on xray-core 26.11.9 2026-11-12 19:26:57 +01:00
websocket fix(tuic): client speed display and certificate button layout (#6723) 2026-10-05 19:46:46 +02:00
assets_test.go fix(web): bound the panel's open connections and share asset gzip 2026-11-01 01:01:38 +01:00
cadence_test.go Add remote routing URL support (#6168) 2026-08-18 16:02:11 +02:00
node_contract_test.go fix(node): drop a swept inbound's bookkeeping from the node runtime 2026-10-31 09:28:39 +00:00
routes_contract_test.go fix(web): bound the panel's open connections and share asset gzip 2026-11-01 01:01:38 +01:00
schedule_test.go fix(settings): accept five-field crontab for report and LDAP schedules 2026-10-11 20:37:04 +02:00
web.go fix: keep panel restarts from hanging on the CPU job and Telegram (#7029) 2026-11-02 15:34:22 +01:00
web_mtls.go feat(node): node hardening — mTLS, hashed+zstd reconcile transport, per-node net metrics (#5382) 2026-06-16 12:19:33 +02:00
web_mtls_test.go feat(node): node hardening — mTLS, hashed+zstd reconcile transport, per-node net metrics (#5382) 2026-06-16 12:19:33 +02:00
web_shutdown_test.go fix(web): install the share-link provider before the panel serves (#6914) 2026-10-24 05:50:46 +02:00
web_sublink_test.go fix(web): install the share-link provider before the panel serves (#6914) 2026-10-24 05:50:46 +02:00
web_tuic_shutdown_test.go fix(web): install the share-link provider before the panel serves (#6914) 2026-10-24 05:50:46 +02:00