trop[bot]
fbc489c43b
fix: validate protocol scheme names in setAsDefaultProtocolClient ( #50157 )
...
fix: validate protocol scheme names in setAsDefaultProtocolClient
On Windows, `app.setAsDefaultProtocolClient(protocol)` directly
concatenates the protocol string into the registry key path with no
validation. A protocol name containing `\` could write to an arbitrary
subkey under `HKCU\Software\Classes\`, potentially hijacking existing
protocol handlers.
To fix this, add `Browser::IsValidProtocolScheme()` which validates that a protocol
name conforms to the RFC 3986 scheme grammar:
scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )
This rejects backslashes, forward slashes, whitespace, and any other
characters not permitted in URI schemes.
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com >
2026-03-10 07:28:57 -04:00
..
2025-11-20 10:13:44 -05:00
2025-05-06 14:09:35 -04:00
2025-08-06 14:47:42 +02:00
2025-07-08 18:18:37 +02:00
2024-09-27 10:17:06 +09:00
2025-11-25 20:49:33 +01:00
2026-03-10 07:28:57 -04:00
2024-10-02 19:10:44 -07:00
2025-05-29 10:31:46 -07:00
2025-09-02 16:56:04 -04:00
2025-11-25 15:47:09 -06:00
2024-10-02 19:10:44 -07:00
2025-02-14 10:18:42 +01:00
2025-11-20 10:13:44 -05:00
2025-07-16 12:15:53 -07:00
2024-10-02 19:10:44 -07:00
2024-11-20 08:55:09 -06:00
2025-06-16 12:46:06 -05:00
2024-10-02 19:10:44 -07:00
2025-05-06 14:09:35 -04:00
2025-05-29 10:24:16 -07:00
2024-10-02 19:10:44 -07:00
2024-11-18 14:44:30 -08:00
2024-11-18 14:44:30 -08:00
2025-11-20 10:13:44 -05:00
2025-02-21 10:17:52 -06:00
2025-04-22 10:58:30 +02:00
2025-05-06 14:09:35 -04:00
2025-06-30 12:29:54 -04:00
2025-04-10 12:08:29 +02:00
2024-10-02 19:10:44 -07:00
2024-10-02 19:10:44 -07:00
2024-10-02 19:10:44 -07:00
2025-05-30 15:28:13 -04:00
2025-11-25 20:49:33 +01:00
2024-10-02 19:10:44 -07:00
2025-11-25 20:49:33 +01:00
2024-10-02 19:10:44 -07:00
2025-03-09 17:37:14 -05:00
2025-11-13 10:34:11 -05:00
2024-10-02 19:10:44 -07:00
2024-10-02 19:10:44 -07:00
2025-03-14 21:00:13 -04:00
2025-01-31 09:32:45 -05:00
2025-07-23 16:45:45 +02:00
2025-10-13 10:13:53 +02:00
2025-07-15 12:05:29 -04:00
2025-02-18 18:59:00 -06:00
2024-10-02 19:10:44 -07:00
2025-08-20 13:03:54 -04:00
2025-08-11 09:42:56 +02:00
2025-01-31 13:27:16 -05:00
2025-11-25 20:49:33 +01:00
2025-08-04 14:28:35 +02:00
2025-08-06 19:39:56 +02:00
2025-07-15 12:05:29 -04:00
2025-02-17 12:40:47 -08:00
2024-10-02 19:10:44 -07:00
2024-10-02 19:10:44 -07:00
2024-11-15 11:36:18 -05:00
2024-10-02 19:10:44 -07:00
2026-03-09 22:02:19 -07:00
2025-03-25 19:33:10 +09:00
2024-10-02 19:10:44 -07:00
2024-04-30 21:13:38 -04:00
2025-10-21 07:28:25 +02:00
2025-07-21 11:55:08 -07:00
2024-10-02 19:10:44 -07:00
2024-06-21 10:31:10 -04:00
2025-08-10 21:55:40 +02:00
2024-12-12 11:51:24 -05:00
2025-05-02 16:27:29 -05:00
2025-08-11 09:42:56 +02:00
2025-04-08 07:09:54 -05:00
2026-01-28 11:49:51 -08:00
2024-10-02 19:10:44 -07:00
2022-08-16 15:23:13 -04:00
2024-10-02 19:10:44 -07:00
2025-12-16 15:56:45 -05:00
2024-10-18 16:07:06 -04:00
2025-11-25 20:49:33 +01:00
2023-01-18 14:46:27 +01:00
2025-12-16 15:56:45 -05:00
2024-12-12 11:51:24 -05:00
2025-04-25 10:10:27 +02:00