hysteria/app/internal
白日梦主义 8e78342c2b
fix(http): decode proxy Basic auth with standard base64 (#1596)
The HTTP proxy server's dispatch method decodes the Proxy-Authorization
Basic credential using base64.URLEncoding, but RFC 7617 specifies that
Basic authentication uses standard Base64 encoding (base64.StdEncoding).
The two encodings differ in their use of +/ vs -_ characters, so any
credential containing 0xff or other bytes that encode to / or + in
standard Base64 will fail to decode with URLEncoding, causing valid
authentication attempts to always be rejected with 407.

Additionally, the "Basic " scheme prefix check was case-sensitive, but
RFC 7235 section 2.1 specifies that auth-scheme is case-insensitive.

Fix both issues by switching to base64.StdEncoding and using
strings.ToLower for the scheme comparison.
2026-06-04 15:14:58 -07:00
..
firewall fix(app): invalid priority in output hook when setting redirect with nft (#1551) 2026-04-22 13:46:59 -07:00
forwarding fix: mod name major version suffix v2 2024-05-18 11:28:47 +08:00
http fix(http): decode proxy Basic auth with standard base64 (#1596) 2026-06-04 15:14:58 -07:00
proxymux feat: quic-go v0.54.0 2025-09-13 16:17:59 -07:00
redirect fix: race in udpSessionManager cleanup & update code formatting (gofumpt) 2025-09-11 20:14:41 -07:00
sockopts feat: Hysteria Realms (#1560) 2026-05-08 14:16:21 -07:00
socks5 fix: mod name major version suffix v2 2024-05-18 11:28:47 +08:00
tproxy fix: mod name major version suffix v2 2024-05-18 11:28:47 +08:00
tun fix(tun): blocked on ctx.Done() 2025-07-26 14:24:16 +09:00
url fix: race in udpSessionManager cleanup & update code formatting (gofumpt) 2025-09-11 20:14:41 -07:00
utils fix(certloader): add SKI, AKI, KeyUsage extensions to test certs (#1589) 2026-06-03 12:52:29 -07:00
utils_test fix: mod name major version suffix v2 2024-05-18 11:28:47 +08:00