Privilege escalation using vulnerabilities in gdm3 and accountsservice (GHSL-2020-187, GHSL-2020-188, GHSL-2020-202)

Bug #1900314 reported by kev
256
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gdm3 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Hi,

I have found a couple of vulnerabilities in gdm3 and accountsservice which enable an unprivileged user to create a new account with administrator privileges. I have already reported the individual bugs to the respective packages, but I am creating this issue to bring it to the attention of the Ubuntu security team, since the bugs create quite a bad combination on Ubuntu. The individual bug reports are here:

https://bugs.launchpad.net/ubuntu/+source/accountsservice/+bug/1900255
https://gitlab.gnome.org/GNOME/gdm/-/issues/642

The vulnerabilities are very easy to exploit, as you can see in this video:

https://drive.google.com/file/d/1bqSSBp_95bKNU4Kmg_BHar8GHs2DuDwB/view?usp=sharing

The video is only visible to people who have the link. Please be careful who you share it with. Note: this is a newer video than the one that I attached to the bug reports mentioned above. I found some ways to simplify the exploitation steps.

Regards,

Kevin Backhouse
GitHub Security Lab

CVE References

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

Thanks for reporting the GDM issue. Unfortunately, we are unable to access the private GNOME bug listed above. Are there any details about the GDM issue you could share?

Revision history for this message
kev (kbackhouse2000) wrote :

Sorry, I should have attached the gdm3 report. Here you go.

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

Oh, that is quite a bad default, nice find!

Revision history for this message
Seth Arnold (seth-arnold) wrote :

Hello Kevin, nice discovery. Please use CVE-2020-16125 for GHSL-2020-202.

Thanks

Revision history for this message
kev (kbackhouse2000) wrote :

Hi Seth,

Does CVE-2020-16125 apply to the gdm3 bug in general, or just Ubuntu?

There has been no response yet to the bug report that I submitted to GNOME (https://gitlab.gnome.org/GNOME/gdm/-/issues/642).

Thanks,

Kev

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

It applies to the gdm3 bug in general. Please add it to the upstream bug report. Let us know if you already had a CVE assigned.

Revision history for this message
kev (kbackhouse2000) wrote :

Thanks! I have added a comment to the GNOME issue with the CVE number.

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

Hi! Have you heard back from the gdm3 developers? I have updates for accountsservice ready, but ideally would like to publish them at the same time as the gdm3 updates.

Revision history for this message
kev (kbackhouse2000) wrote :

No, there has been no response from GNOME. It seems like nobody has even looked at https://gitlab.gnome.org/GNOME/gdm/-/issues/642

Revision history for this message
kev (kbackhouse2000) wrote :

I am going to try sending an email to <email address hidden>.

Revision history for this message
kev (kbackhouse2000) wrote :

I got an immediate response to my email to <email address hidden>. They're looking into it now. I'll let them know that you have a fix for accountsservice ready and would like to coordinate the disclosure with them.

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

So it looks like there's a gdm3 fix available now. While the gdm3 fix is available, I would like the details of the issue to remain private until 2020-11-03 so I can prepare updates and properly test them since accountsservice is specifically mentioned in your gdm3 advisory.

Is 2020-11-03 ok with you?

Revision history for this message
kev (kbackhouse2000) wrote :

Thanks! 2020-11-03 is great.

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :
Changed in gdm3 (Ubuntu):
status: New → Fix Released
information type: Private Security → Public Security
To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.