Files
freeipa/ipatests
Rob Crittenden e4ae6881da Integration tests for verifying Referer header in the UI
Validate that the change_password and login_password endpoints
verify the HTTP Referer header. There is some overlap in the
tests: belt and suspenders.

All endpoints except session/login_x509 are covered, sometimes
having to rely on expected bad results (see the i18n endpoint).

session/login_x509 is not tested yet as it requires significant
additional setup in order to associate a user certificate with
a user entry, etc.

This can be manually verified by modifying /etc/httpd/conf.d/ipa.conf
and adding:

Satisfy Any
Require all granted

Then comment out Auth and SSLVerify, etc. and restart httpd.

With a valid Referer will fail with a 401 and log that there is no
KRB5CCNAME. This comes after the referer check.

With an invalid Referer it will fail with a 400 Bad Request as
expected.

CVE-2023-5455

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
(cherry picked from commit 14720c7690bda2b538dfc1d742eb4eb152dfd8a2)
2024-01-10 10:40:12 +01:00
..
2023-05-16 13:12:12 +02:00
2019-07-16 13:23:21 +03:00
2023-05-31 09:17:25 +02:00
2020-10-26 17:11:19 +11:00
2013-06-17 19:22:50 +02:00
2022-03-11 13:37:08 -05:00
2015-10-22 18:34:46 +02:00
2022-03-11 13:37:08 -05:00
2016-10-20 18:43:37 +02:00
2021-06-16 10:28:17 -04:00