Skip to content
Access control Disclosed report Intermediate CVE-2023-51379

[PATs] Token with Read-Only permissions on Issues able to modify issue comments using content write permission

A fine-grained personal access token with only read permission on issues could still update issue comments if it also had content write permission. An attacker with such a token could modify issue comments despite lacking write access to issues.

archangel Follow

Originally disclosed on HackerOne

  • Triaged in 4 days
  • Fixed in 59 days
  • Paid in 59 days
  • Disclosed after 3 months

Summary by the program

An incorrect authorization vulnerability was identified in GitHub Enterprise Server that allowed issue comments to be updated with an improperly scoped token. This vulnerability did not allow unauthorized access to any repository content as it also required contents:write and issues:read permissions. CVE-2023-51379

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

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

Root cause

Likely the permission check for updating issue comments only verified content write permission and did not enforce the separate issues write permission.

Impact

An attacker with a token that had content write and issues read permissions could update issue comments, but this did not grant access to repository content.

What the attacker needed

A token with contents:write and issues:read

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.

A personal access token is like a password that lets a program act on your behalf. This bug meant a token that was only supposed to read issues could still change comments if it also had permission to write code. So someone with that token could alter comments even though they were not supposed to have that ability.

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 by archangel

View all

4 more disclosed reports, best first.

More from GitHub

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.