Bug 2242828 (CVE-2023-5455)

Summary: CVE-2023-5455 ipa: Invalid CSRF protection
Product: [Other] Security Response Reporter: Sandipan Roy <saroy>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: abokovoy, jrische, mmatsuya, security-response-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: ipa 4-11-1 Doc Type: If docs needed, set a value
Doc Text:
A Cross-site request forgery vulnerability exists in ipa/session/login_password in all supported versions of IPA. This flaw allows an attacker to trick the user into submitting a request that could perform actions as the user, resulting in a loss of confidentiality and system integrity. During community penetration testing it was found that for certain HTTP end-points FreeIPA does not ensure CSRF protection. Due to implementation details one cannot use this flaw for reflection of a cookie representing already logged-in user. An attacker would always have to go through a new authentication attempt.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
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: 2257646    
Bug Blocks: 2242829    

Description Sandipan Roy 2023-10-09 09:24:32 UTC
IPA uses the HTTP Referer header to prevent CSRF attacks but it is not applied universally. Notably, the URI ipa/session/login_password is not protected.

A third party may trick a valid user into leaving their credentials into a form and then steal a resulting cookie from a redirect to the freeipa login page.

This affects all supported versions of IPA.

Comment 3 Sandipan Roy 2024-01-10 12:09:46 UTC
Created freeipa tracking bugs for this issue:

Affects: fedora-all [bug 2257646]

Comment 5 errata-xmlrpc 2024-01-10 12:26:23 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.4 Telecommunications Update Service

Via RHSA-2024:0138 https://access.redhat.com/errata/RHSA-2024:0138

Comment 6 errata-xmlrpc 2024-01-10 12:27:42 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Extended Update Support

Via RHSA-2024:0137 https://access.redhat.com/errata/RHSA-2024:0137

Comment 7 errata-xmlrpc 2024-01-10 13:10:29 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Extended Update Support

Via RHSA-2024:0139 https://access.redhat.com/errata/RHSA-2024:0139

Comment 8 errata-xmlrpc 2024-01-10 13:23:16 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2024:0141 https://access.redhat.com/errata/RHSA-2024:0141

Comment 9 errata-xmlrpc 2024-01-10 13:23:42 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2024:0145 https://access.redhat.com/errata/RHSA-2024:0145

Comment 10 errata-xmlrpc 2024-01-10 13:25:11 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.2 Advanced Update Support
  Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.2 Telecommunications Update Service

Via RHSA-2024:0144 https://access.redhat.com/errata/RHSA-2024:0144

Comment 11 errata-xmlrpc 2024-01-10 13:29:38 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Extended Update Support

Via RHSA-2024:0142 https://access.redhat.com/errata/RHSA-2024:0142

Comment 12 errata-xmlrpc 2024-01-10 13:34:13 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:0143 https://access.redhat.com/errata/RHSA-2024:0143

Comment 13 errata-xmlrpc 2024-01-10 13:44:05 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Extended Update Support

Via RHSA-2024:0140 https://access.redhat.com/errata/RHSA-2024:0140

Comment 15 errata-xmlrpc 2024-01-15 15:46:43 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Extended Update Support

Via RHSA-2024:0252 https://access.redhat.com/errata/RHSA-2024:0252