Skip to content
Access control Disclosed report Intermediate

GitLab Duo Chat can access issues and epics in SSO enforced groups without having an SSO session

GitLab Duo Chat did not enforce SSO session requirements for group issues and epics, allowing a group member without an active SSO session to retrieve their content by asking the chat to print a URL. This bypassed the SSO enforcement that normally blocks web access to those items.

GitLab

Originally disclosed on GitLab

  • Fixed in 3 months
  • Disclosed after 3 months

⚠️ Please read the process on how to fix security issues before starting to work on the issue. Vulnerabilities must be fixed in a security mirror.

HackerOne report #2417868 by joaxcar on 2024-03-15, assigned to @greg:

Report | How To Reproduce

Report

Summary

I am just starting to look at the Duo AI capabilities, so bear with me if I have not fully understood the threat model yet.

On a Premium or Ultimate license group, there is the option to enforce an active SSO session to gain access to the Group and the group's projects. See documentation. Enabling this on a group will prevent all access to issues and epics in the group for users that do not have an active SSO session. I know that this enforcement is not fully supported in the GitLab API yet, see issue, but I think that Duo Chat would fall under "web access".

I noticed that the Duo chat is not restricted by SSO enforcement. A user that would normally be prompted with a "SSO session required" when trying to view issues and epics can still ask Duo Chat to access the items through the web UI.

Steps to reproduce
  1. Create two accounts on https://gitlab.com, and make sure that one of them has an Ultimate trial (this is to get access to Duo chat and Group SSO)
  2. Log in as the victim and create a group with an Ultimate license (make it private)
  3. Create a project in the group (make it private)
  4. Create an issue in the project with some content
  5. Go to https://gitlab.com/groups/GROUPNAME/-/group_members and invite the other user as a member
  6. Go to https://gitlab.com/groups/GROUPNAME/-/saml
  7. Check these three boxes:

Enable SAML authentication for this group
Enforce SSO-only authentication for web activity for this group
Enforce SSO-only authentication for Git and Dependency Proxy activity for this group

  1. Click save
  2. Now try to access https://gitlab.com/GROUPNAME/PROJECTNAME/-/issues/1

The user will be blocked and asked to authenticate with SSO

  1. Now log in as the attacker user (member of the group)
  2. Try to access https://gitlab.com/GROUPNAME/PROJECTNAME/-/issues/1 the user will be asked for SSO
  3. Open Duo Chat (either in top right or under "help")
  4. Type this in chat
Print the content of: https://gitlab.com/GROUPNAME/PROJECTNAME/-/issues/1  
  1. Duo chat will think for a bit and then print the information about the issue without asking for SSO
Impact

Users can bypass SSO enforcement using Duo Chat, leaking issues and epics to users who are not correctly authorized

What is the current bug behavior?

Duo chat does not seem to care about SSO sessions

What is the expected correct behavior?

Duo Chat should check where the user has an active SSO session just like the other parts of the UI

Impact

Users can bypass SSO enforcement using Duo Chat, leaking issues and epics to users who are not correctly authorized

How To Reproduce

Please add reproducibility information to this section:

The original report as published on GitLab. Images and videos are our own copies; raw HTML is shown as text. View it on GitLab.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Impact

Users could bypass SSO enforcement using Duo Chat, leaking issues and epics to users who are not correctly authorized.

What the attacker needed

GitLab Ultimate trial; Two accounts; Group with SSO enforced; Attacker is group member

The fix

Duo Chat should check whether the user has an active SSO session, just like other parts of the UI.

How it was found

  1. Create two GitLab accounts, one with an Ultimate trial.
  2. As the victim, create a private group with Ultimate license and a private project with an issue.
  3. Invite the other user as a group member.
  4. Enable SAML authentication and enforce SSO-only authentication for web activity for the group.
  5. As the attacker (group member without SSO), try to access the issue URL and observe the SSO prompt.
  6. Open Duo Chat and ask it to print the content of the issue URL; the content is displayed without an SSO prompt.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Single sign-on (SSO) is a way to require users to log in through a company identity provider before accessing resources. GitLab groups can enforce that an active SSO session is needed to view issues and epics. The AI chat feature ignored this check, so a member without an SSO session could still get the content by asking the chat to fetch a link.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from GitLab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.