[BUG]: GitHub Personal Access Token (PAT) is stored in plaintext in localStorage
Maintainer antworten meist innerhalb von 1 Tag
@Sandeepkg123 arbeitet bereits daran.
Seit 03.11.2026.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- github, javascript
- Bereich
- authentication, frontend, security
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Vorherrschende Sprache
- JavaScript
- Sterne
- 53
- Forks
- 182
- Ø Merge
- 18 Min.
- Gemergte PRs (30 T.)
- 2
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus AOSSIE-Org/OrgExplorer
-
[BUG]: PAT popup input lacks label association and visibility button lacks an accessible nameEvtl. vergeben @prasanm1423 hat das vor 3 Tagen übernommen. Offenbug enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
AOSSIE-Org/OrgExplorer#466 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
[FEATURE]: Set dynamic document.title based on active page routeEvtl. vergeben @23241a6749 hat das vor 1 Tag übernommen. Offenenhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
AOSSIE-Org/OrgExplorer#462 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
[BUG]: SocialShareButton logs unconditional console.warn when script is not loadedEvtl. vergeben @vivekrajputofficial29-afk hat das vor 1 Tag übernommen. Offenbug enhancement
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 89/100
AOSSIE-Org/OrgExplorer#461 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
[BUG]: governance page shows "No dead issues" before the audit has runEvtl. wieder frei @SYED-IRTEZA-HUSSAIN-RIZVI hat das vor 8 Tagen übernommen, und es ist kein Pull Request offen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
AOSSIE-Org/OrgExplorer#453 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
[BUG]: User-controlled org/repo names are interpolated into API URLs unencodedEvtl. vergeben @AbhishekKumar-cse hat das vor 10 Tagen übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
AOSSIE-Org/OrgExplorer#449 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in AOSSIE-Org/OrgExplorer
Ähnliche Issues
-
good first issue help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
-
tech-debt
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement frontend good first issue help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
Maintainer antworten meist innerhalb von 2 Tagen
-
marketing
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag
-
[功能优化] 优化首页 排行 标签页的显示Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag