Skip to content
Access control Write-up Beginner

Bearer Tokens, Broken Trust, and GitHub Classroom’s Flawed Desi

GitHub Classroom assignment invitation links act as long-lived bearer tokens: anyone holding a leaked or indexed link can accept the assignment with any GitHub account, including a fresh one. The author used such links to see student names and emails, pick a student or team, and receive a private repository without any verification.

Vanshal Gaur Follow

Published on vanshal.medium.com

How a shareable assignment link gave me access to private student repos and academic data — no verification required.

Vanshal Gaur, on vanshal.medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

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

How it worked

Root cause

Likely the invitation link is treated as the sole proof of authorisation, with no binding to a specific student identity and no expiry or one-time use by default.

Impact

Anyone with a leaked or indexed link could view student personal data, read private assignment repositories, and submit work while impersonating a student; links stay active indefinitely by default unless an educator manually revokes them.

What the attacker needed

A leaked or indexed invitation link; a GitHub account (a fresh one works)

The fix

GitHub should add expiry and revocation for invitation links, bind invitations to specific emails or usernames, block indexing of classroom URLs, and warn educators about the exposure risk; the text says GitHub considers the current behaviour intentional.

How it was found

  1. Collect public URLs with a URL-gathering tool and find GitHub Classroom invitation links.
  2. Open one of the links in a private browsing session with a new GitHub account.
  3. View the list of student names and emails and choose a student or team.
  4. Accept the assignment without any verification.
  5. Receive a private repository granted to the new account.

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 write-up has not been written yet. The Original tab links to the source.

A GitHub Classroom invitation link is meant to let a student join an assignment. The problem is that the link itself is the only thing checked, so anyone who finds it can join as if they were a student. The author found many of these links through public search tools and used them to get into private class repositories.

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.

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.