Bug 2131149 (CVE-2022-39229)

Summary: CVE-2022-39229 grafana: using email as a username can block other users from signing in
Product: [Other] Security Response Reporter: TEJ RATHI <trathi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: agerstmayr, anstephe, aoconnor, avibelli, bgeorges, bniver, chazlett, clement.escoffier, dandread, dkreling, flucifre, gmeno, go-sig, gparvin, grafana-maint, gsmet, hamadhan, jburrell, jkurik, jochrist, jramanat, jwon, lthon, mbenjamin, mhackett, nathans, njean, pahickey, peholase, pgallagh, pjindal, probinso, rruss, rsvoboda, saroy, sbiarozk, scox, sdouglas, security-response-team, sostapov, stcannon, vereddy, vkumar
Target Milestone: ---Keywords: Reopened, Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Grafana web application. When a user logs into the system, either the username or email address can be used. However, the login system allows both a username and connected email to be registered, which could allow an attacker to prevent a user which has an associated email address access.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-16 18:33:42 UTC 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: 2131263, 2131191, 2131192, 2133062, 2133063, 2133064, 2134701, 2134937    
Bug Blocks: 2131159    

Description TEJ RATHI 2022-09-30 05:51:41 UTC
CVE-2022-39229: Using email as a username can block other users from signing in 

Currently, a user’s username and email address are unique fields, that means no other user can have the same username or email address as another user. A user can have an email address as a username.

However, the login system allows users to log in with either username or email address. Since we allow a user to log in with either their username or email address, this creates an unusual behavior where user_1 can register with one email address and user_2 can register his username as user_1’s email address.

This prevents user_1 from logging into the application since user_1 password won’t match with users_2 email address.
This is a moderate severity security issue because it can stop a user from logging into the system.

Affected versions: Grafana <= 9.1.x

Comment 5 Marian Rehak 2022-10-14 05:35:26 UTC
Created grafana tracking bugs for this issue:

Affects: fedora-all [bug 2134701]

Comment 8 Sage McTaggart 2022-12-21 23:31:25 UTC
Closing as won't fix.

Comment 9 Sage McTaggart 2022-12-21 23:32:11 UTC
Woops, reopening

Comment 19 errata-xmlrpc 2023-05-09 07:13:40 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:2167 https://access.redhat.com/errata/RHSA-2023:2167

Comment 20 errata-xmlrpc 2023-05-16 08:12:15 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:2784 https://access.redhat.com/errata/RHSA-2023:2784

Comment 21 Product Security DevOps Team 2023-05-16 18:33:39 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2022-39229

Comment 22 errata-xmlrpc 2023-06-15 16:01:07 UTC
This issue has been addressed in the following products:

  Red Hat Ceph Storage 6.1

Via RHSA-2023:3642 https://access.redhat.com/errata/RHSA-2023:3642