freeipa/ipatests
Rob Crittenden 86b073a7f0
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>
2024-01-10 10:27:06 +01:00
..
azure azure tests: move to fedora 39 2024-01-09 08:40:47 +01:00
man Simplify ipa-run-tests script 2019-07-16 13:23:21 +03:00
prci_definitions Integration tests: disable test_sso 2023-12-04 15:58:07 +01:00
pytest_ipa pylint: fix errors 2024-01-09 08:40:47 +01:00
test_cmdline pylint: Fix used-before-assignment 2023-01-10 08:30:58 +01:00
test_custodia pylint: disable comparison-of-constants 2023-01-10 08:30:58 +01:00
test_install Unify access to FQDN 2020-10-26 17:11:19 +11:00
test_integration ipatests: make sure PKINIT enrollment works with a strict policy 2023-12-22 10:34:19 +01:00
test_ipaclient ipaclient: do not set TLS CA options in ldap.conf anymore 2022-10-10 09:50:39 +02:00
test_ipalib ipalib: fix the IPACertificate validity dates 2023-10-16 14:46:45 -04:00
test_ipaplatform ipatests/test_ipaplatform: Skip test_ipa_version on Debian 2021-11-25 21:02:56 -05:00
test_ipapython Use datetime.timezone.utc instead of newer datetime.UTC alias 2023-09-29 15:06:33 -04:00
test_ipaserver Integration tests for verifying Referer header in the UI 2024-01-10 10:27:06 +01:00
test_ipatests_plugins ipatests: Don't turn Pytest IPA deprecation warnings into errors 2020-07-29 15:10:00 -04:00
test_webui Webui: use service options to init Firefox driver 2023-12-11 11:51:43 +01:00
test_xmlrpc pylint: fix errors 2024-01-09 08:40:47 +01:00
__init__.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
conftest.py pylint: Fix useless-suppression 2022-03-11 13:37:08 -05:00
create_external_ca.py Use datetime.timezone.utc instead of newer datetime.UTC alias 2023-09-29 15:06:33 -04:00
data.py Fix more bytes/unicode issues 2015-10-22 18:34:46 +02:00
i18n.py pylint: Fix useless-suppression 2022-03-11 13:37:08 -05:00
ipa-run-tests ipatests: Specify shell implementation 2020-04-21 13:24:50 +02:00
ipa-test-config Rename pytest_plugins to ipatests.pytest_ipa 2018-08-02 17:07:43 +02:00
ipa-test-task ipatests: Fetch sudo rules without time offset 2021-06-03 09:21:45 +03:00
Makefile.am Build: fix distribution of static files for web UI 2016-11-09 13:08:32 +01:00
setup.cfg Port all setup.py to setuptools 2016-10-20 18:43:37 +02:00
setup.py Add Custodia tests 2021-06-16 10:28:17 -04:00
test_util.py pylint: Fix unnecessary-lambda-assignment 2023-01-10 08:30:58 +01:00
util.py Integration tests for verifying Referer header in the UI 2024-01-10 10:27:06 +01:00