Skip to content
Advisory Intermediate

GHSL-2020-276: Unauthorized repository modification or secrets exfiltration in nuxt repositories

The GitHub workflows in two nuxt repositories used pull_request_target and checked out code from a fork, allowing untrusted code to run with write access to the base repository and secrets. An attacker could modify the base repository or exfiltrate secrets, though a mistake in the checkout ref currently prevented exploitation.

jarlob Follow

Originally disclosed on GitHub Security Lab

snapshot.yml and sync.yml GitHub workflows are vulnerable to unauthorized modification of the base repository or secrets exfiltration from a Pull Request.

jarlob, on GitHub Security Lab

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

How it worked

Impact

The vulnerability could allow unauthorized modification of the base repository and secrets exfiltration, but currently a mistake in the checkout ref prevents exploitation.

What the attacker needed

Ability to create a pull request from a fork; workflow triggered by pull_request_target; actor name contains 'renovate'

The fix

The issue was resolved by the maintainers, likely by removing the unsafe checkout of pull request code or by not using pull_request_target with untrusted code.

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.

GitHub Actions workflows can be triggered by pull requests. The pull_request_target event gives the workflow write access to the base repository and access to secrets, but it is supposed to run only trusted code. Here, the workflow checked out code from the pull request (which can come from anyone) and ran it, so an attacker could run their own code with those privileges.

More by jarlob

View all

192 more disclosed reports, best first.

More from GitHub Security Lab

View all

The newest disclosed reports for this program.

Similar reports

Same bug class and techniques, clearest first.