🛡️ Sentinel: [MEDIUM] Fix physical security exposure of sensitive credentials#90
🛡️ Sentinel: [MEDIUM] Fix physical security exposure of sensitive credentials#90bobdivx wants to merge 1 commit into
Conversation
…dentials Updated sensitive credential input fields (API keys and passkeys) in UI components to use `type="password"` and `autoComplete="off"`. This masks the credentials visually to prevent physical security exposures like shoulder-surfing, and ensures the browser does not inadvertently cache or leak these values via autofill mechanisms. Co-authored-by: bobdivx <6737167+bobdivx@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Code Review
This pull request enhances physical security by updating sensitive credential fields, such as API keys and passkeys, to use type="password" and autoComplete="off" across several settings panels. The review identified critical logic errors in UploadAssistantPanel.tsx and UploadTrackersManagerPanel.tsx where incorrect state setters are called during focus events, potentially clearing the wrong data. Additionally, the feedback suggests extending these security improvements to other sensitive fields like announceUrl and rawCookie that remain exposed to browser caching and autofill.
| type="password" | ||
| autoComplete="off" |
There was a problem hiding this comment.
| type="password" | ||
| autoComplete="off" |
There was a problem hiding this comment.
The change to type="password" is correct. However, there is a bug on line 292 (just outside this hunk) where onFocus calls setApiKey('') instead of setPasskey(''). Additionally, the announceUrl field at line 300 also contains a sensitive passkey and should be protected with autoComplete="off" to align with the security goals of this PR.
| type="password" | ||
| autoComplete="off" |
There was a problem hiding this comment.
The change to type="password" is correct. However, the announceUrl field at line 373 and the rawCookie textarea at line 295 also contain sensitive credentials and remain exposed. These fields should at least have autoComplete="off" added to prevent browser caching and autofill, consistent with the security improvements made to other sensitive fields in this PR.
🚨 Severity: MEDIUM
💡 Vulnerability: Sensitive credentials like API keys and passkeys were being rendered in frontend settings components (e.g.,
TmdbConfig,UploadAssistantPanel) using standard text inputs (<input type="text">).🎯 Impact: This creates a physical security exposure, making these sensitive values susceptible to shoulder-surfing. Additionally, it increases the risk of these values being cached by the browser or exposed via autofill.
🔧 Fix: Updated the relevant input fields to use
<input type="password">alongsideautoComplete="off". This ensures the inputs are visually masked and prevents browser caching/autofill behavior.✅ Verification: Ran
npm testandnpm run buildlocally to verify no regressions were introduced. Evaluated component implementations inTmdbConfig.tsx,UploadTrackerPanel.tsx,UploadTrackersManagerPanel.tsx, andUploadAssistantPanel.tsx.PR created automatically by Jules for task 16863479979649137440 started by @bobdivx