[BUG]: GitHub Personal Access Token (PAT) is stored in plaintext in localStorage
I maintainer di solito rispondono entro 1 giorno
@Sandeepkg123 ci sta già lavorando.
Dal 3/11/2026.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- github, javascript
- Ambito
- authentication, frontend, security
Direzione di ricerca
Start by reading the token save and load paths in src/context/AppContext.jsx, the GitHub request in src/services/github.js, and the Settings disclosure in src/pages/SettingsPage.jsx. Determine what protection is feasible for a static browser app and how it affects token use. Done means the token exposure and the mismatch in the Settings explanation are addressed; the issue does not specify a proposed design or tests.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Bug Description
The app stores the user's GitHub Personal Access Token (PAT) in plaintext in the browser's localStorage under the key oe_pat. It is not encrypted and not hashed (no bcrypt, no WebCrypto, no AES). Anyone with access to the browser profile, DevTools, or an XSS vulnerability can read the full token and use it to access the user's GitHub account with the token's scopes.
Relevant code:
- Save (plaintext write):
src/context/AppContext.jsx:144→localStorage.setItem('oe_pat', token) - Load (plaintext read):
src/context/AppContext.jsx:29→localStorage.getItem('oe_pat') - Delete:
src/context/AppContext.jsx:156 - Token is also sent as-is to GitHub:
src/services/github.js:85→headers.Authorization = \token ${pat}``
The Settings page tells users "Your Personal Access Token (PAT) is stored locally on your device and is never sent to any server" (src/pages/SettingsPage.jsx:143), but does not disclose that it is stored unencrypted and readable by any script on the origin.
Steps to Reproduce
- Open the app and go to Settings.
- Paste a valid GitHub Personal Access Token and click Save (token is validated against
https://api.github.com/rate_limit). - Open DevTools (
F12/Ctrl+Shift+I/Cmd+Option+I) → Application tab → Storage → Local Storage → select the app origin. - Observe the key
oe_pat. - Copy the value — it is the full, readable PAT.
- Alternatively, in DevTools → Console, run:
localStorage.getItem('oe_pat') The raw token is returned in plaintext.
Logs and Screenshots
The token can be seen in the browser inspection menu:
Console proof:
Environment Details
- Browser: Brave Browser (latest stable)
- OS: Linux
- App version: v1.0.0
- Build: Production static build (GitHub Pages)
- Storage: Browser localStorage
Impact
Critical - Application is unusable
Code of Conduct
- I have joined the Discord server and will post updates there
- I have searched existing issues to avoid duplicates
- Lingua principale
- JavaScript
- Stelle
- 53
- Fork
- 182
- Merge medio
- 18m
- PR unite (30g)
- 2
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di AOSSIE-Org/OrgExplorer
-
[BUG]: PAT popup input lacks label association and visibility button lacks an accessible nameForse già presa @prasanm1423 l’ha presa 3 giorni fa. Apertabug enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
AOSSIE-Org/OrgExplorer#466 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
[FEATURE]: Set dynamic document.title based on active page routeForse già presa @23241a6749 l’ha presa 1 giorno fa. Apertaenhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
AOSSIE-Org/OrgExplorer#462 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG]: SocialShareButton logs unconditional console.warn when script is not loadedForse già presa @vivekrajputofficial29-afk l’ha presa 1 giorno fa. Apertabug enhancement
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 89/100
AOSSIE-Org/OrgExplorer#461 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG]: governance page shows "No dead issues" before the audit has runForse di nuovo libera @SYED-IRTEZA-HUSSAIN-RIZVI l’ha presa 8 giorni fa e non c’è nessuna pull request aperta. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
AOSSIE-Org/OrgExplorer#453 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG]: User-controlled org/repo names are interpolated into API URLs unencodedForse già presa @AbhishekKumar-cse l’ha presa 10 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
AOSSIE-Org/OrgExplorer#449 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di AOSSIE-Org/OrgExplorer
Issue simili
-
marketing
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
[bug]: Maximizing the Windows dashboard covers the taskbarForse già presa @xiufengsun l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 63/100
xiufengsun/TokenTracker#1152 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
parity: scripting.net's net-http row fails on macOS with errno 61 where the BDS golden has 111ApertaBug Tests
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
JSPrismarine/JSPrismarine#3384 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
desec-io/desec-stack#1312 ·
I maintainer di solito rispondono entro 14 giorni
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 72/100
w3c/csswg-drafts#14848 ·
I maintainer di solito rispondono entro 1 giorno