Files
objecttothisandTravis Garrison a5d70c07bb fix(auth): validate gcaptcha before password to prevent bypass (#4618)
* fix(auth): validate gcaptcha before password to prevent bypass

Move gcaptcha check before credential validation so a valid captcha
is required prior to any login attempt. Previously, password auth
ran first, allowing timing-based enumeration without captcha.

Signed-off-by: Travis Garrison <travis@chiraqbookstore.com>

* test(auth): add regression tests for gcaptcha validation order in OSPOSRules

Guards fix from 5dea748b0: gcaptcha must be validated before
Employee::login() is attempted to prevent auth bypass.

Change gcaptcha_check visibility to protected to allow testing.

Signed-off-by: Travis Garrison <travis@chiraqbookstore.com>

---------

Signed-off-by: Travis Garrison <travis@chiraqbookstore.com>
Co-authored-by: Travis Garrison <travis@chiraqbookstore.com>
2026-08-07 02:27:33 +04:00
..
2026-04-14 01:05:10 +04:00
2026-04-14 01:05:10 +04:00
2026-04-14 01:05:10 +04:00
2024-06-15 17:19:15 +02:00
2026-04-14 01:05:10 +04:00
2025-04-03 14:16:06 +04:00
2024-06-15 17:19:15 +02:00
2026-04-14 01:05:10 +04:00
2024-06-15 17:19:15 +02:00
2024-06-15 17:19:15 +02:00
2026-04-14 01:05:10 +04:00
2025-04-03 14:16:06 +04:00
2026-04-14 01:05:10 +04:00
2026-04-14 01:05:10 +04:00
2024-06-15 17:19:15 +02:00
2026-04-14 01:05:10 +04:00