Bug 2124547
| Summary: | Attempt to log in as "root" user with admin's password in Web UI does not properly fail | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Ivan Brkic <ivan.brkic> | |
| Component: | ipa | Assignee: | Florence Blanc-Renaud <frenaud> | |
| Status: | CLOSED ERRATA | QA Contact: | Michal Polovka <mpolovka> | |
| Severity: | low | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 9.0 | CC: | abokovoy, gkaihoro, ivan.brkic, mjurasek, mpolovka, mrehak, pasik, rjeffman | |
| Target Milestone: | rc | Keywords: | Triaged, ZStream | |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
|
| Hardware: | Unspecified | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | ipa-4.10.0-8.el9 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 2127035 2137555 (view as bug list) | Environment: | ||
| Last Closed: | 2023-05-09 07:32:52 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 2127035, 2137555 | |||
|
Description
Ivan Brkic
2022-09-06 13:16:51 UTC
We have handled this in upstream publicly, so this bug can be unclassified. It should be fixed in RHEL 8.7/9.1 once they are out as part of the rebases. Upstream ticket: https://pagure.io/freeipa/issue/9226 Fixed upstream: master: https://pagure.io/freeipa/c/2ae316d4308d05fcac118212299fdd33d135179c ipa-4-10: https://pagure.io/freeipa/c/a0928fe164712303a7c24ee61500ac7326bd9e4a ipa-4-9: https://pagure.io/freeipa/c/109cd579e3b089b7fad4c92bf25594eba1af8a21 ipa-4-6: https://pagure.io/freeipa/c/6536162634289509078700174b6f12962eadc4b5 Note: the issue also happens on RHEL 8.6 but DOES NOT happen on RHEL 7.9 (it is related to the introduction of the patch https://pagure.io/freeipa/c/4911a3f05514a7c0ac66e4ef5004581cced8519f Prevent local account takeover which was backported to RHEL 8.6 but not to RHEL 7.9). @security-response-team can you remove the Security keyword? The issue has already been discussed and fixed upstream. ipa-server-4.10.0-7.el9_1.x86_64 Admin password: Secret123 Root password: BananaBreadIsTheBest123 (see the difference in length) Logged in as user root with admin's password (see the attached screenshot), therefore marking as pre-verified:tested. Automation in progress. Pre-verified using automation from ipatests/test_webui/test_loginscreen.py on RHEL9.2 machine with ipa-server-4.10.0-8.el9.x86_64
============================= test session starts ==============================
platform linux -- Python 3.6.8, pytest-3.10.1, py-1.11.0, pluggy-1.0.0 -- /usr/libexec/platform-python
cachedir: /home/cloud-user/.pytest_cache
metadata: {'Python': '3.6.8', 'Platform': 'Linux-4.18.0-372.32.1.el8_6.x86_64-x86_64-with-redhat-8.6-Ootpa', 'Packages': {'pytest': '3.10.1', 'py': '1.11.0', 'pluggy': '1.0.0'}, 'Plugins': {'metadata': '1.11.0', 'html': '1.22.1', 'multihost': '3.0', 'sourceorder': '0.6.0'}}
rootdir: /usr/lib/python3.6/site-packages/ipatests, inifile:
plugins: metadata-1.11.0, html-1.22.1, multihost-3.0, sourceorder-0.6.0
collecting ... collected 6 items
test_webui/test_loginscreen.py::TestLoginScreen::test_reset_password_view PASSED [ 16%]
test_webui/test_loginscreen.py::TestLoginScreen::test_reset_password_view_with_redirect PASSED [ 33%]
test_webui/test_loginscreen.py::TestLoginScreen::test_reset_password_view_with_delayed_redirect PASSED [ 50%]
test_webui/test_loginscreen.py::TestLoginScreen::test_reset_password_and_login_view PASSED [ 66%]
test_webui/test_loginscreen.py::TestLoginScreen::test_login_view PASSED [ 83%]
test_webui/test_loginscreen.py::TestLoginScreen::test_root_login PASSED [100%]
Full test log is an attachment of this BZ. Marking as pre-verified - tested.
Tested with ipa-server-4.10.0-8.el9 on RHEL9.2 machine using the automation from test_webui/test_loginscreen.py::TestLoginScreen::test_root_login
============================= test session starts ==============================
platform linux -- Python 3.6.8, pytest-3.10.1, py-1.11.0, pluggy-1.0.0 -- /usr/libexec/platform-python
cachedir: /home/cloud-user/.pytest_cache
metadata: {'Python': '3.6.8', 'Platform': 'Linux-4.18.0-372.32.1.el8_6.x86_64-x86_64-with-redhat-8.6-Ootpa', 'Packages': {'pytest': '3.10.1', 'py': '1.11.0', 'pluggy': '1.0.0'}, 'Plugins': {'metadata': '1.11.0', 'html': '1.22.1', 'multihost': '3.0', 'sourceorder': '0.6.0'}}
rootdir: /usr/lib/python3.6/site-packages/ipatests, inifile:
plugins: metadata-1.11.0, html-1.22.1, multihost-3.0, sourceorder-0.6.0
collecting ... collected 6 items
test_webui/test_loginscreen.py::TestLoginScreen::test_reset_password_view PASSED [ 16%]
test_webui/test_loginscreen.py::TestLoginScreen::test_reset_password_view_with_redirect PASSED [ 33%]
test_webui/test_loginscreen.py::TestLoginScreen::test_reset_password_view_with_delayed_redirect PASSED [ 50%]
test_webui/test_loginscreen.py::TestLoginScreen::test_reset_password_and_login_view FAILED [ 66%]
test_webui/test_loginscreen.py::TestLoginScreen::test_login_view PASSED [ 83%]
test_webui/test_loginscreen.py::TestLoginScreen::test_root_login PASSED [100%]
The failure in unrelated test is caused by machine setup and it's not a regression.
Marking as verified.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (ipa bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2023:2205 |