Skip to content
Leaked secrets Disclosed report Beginner CVE-2023-2138

@nuxtlabs/github-module made Use of Hard-coded Credentials

The @nuxtlabs/github-module contained a hard-coded GitHub token in the source code of the nuxt.com page. This token granted access to multiple repositories under the nuxt, nuxtlabs and nuxt-themes GitHub organizations.

nuxtlabs/github-module

Originally disclosed on huntr

Critical View original

https://nuxt.com had a hardcoded GitHub token in the source code of the page. This token had access to multiple repositories under nuxt, nuxtlabs and nuxt-themes GitHub organizations. A patch in version 1.6.2 fixed the issue.

From the GitHub Advisory Database (GHSA-fp2w-g92g-fgq4, CC BY 4.0).

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

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

An attacker could use the exposed token to access multiple repositories under the nuxt, nuxtlabs and nuxt-themes GitHub organizations.

What the attacker needed

Access to the page's source code

The fix

The issue was fixed in version 1.6.2 of the module.

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 secret key (a GitHub token) was left inside the code that builds a website. Anyone who looked at the page's code could find it and use it to access private code repositories. The problem was fixed in a later version of the module.

What is Leaked secrets?

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.

Similar reports

View all

Same bug class and techniques, clearest first.

Leaked secrets and credentials

The lesson behind this report.

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.