Conversation
Automated security fix generated by OrbisAI Security
|
Why would it be an issue if a SAML assertion is logged to the console? I don't see what you're trying to fix here |
The prior comment implied error details could leak extension-processed sensitive data. bootstrap.js never handles SAML data, so onError only ever receives a generic WebExtensions API error from browser.windows.create(); clarify that instead.
|
Thanks for pushing back on this — you're right to question it. I went back and traced the actual data flow in So: I don't have evidence a SAML assertion currently reaches any of these logs, and my original HIGH-severity/vulnerability framing was wrong. I've updated the PR description and title to reflect that — this is now just a small diagnostic-hygiene cleanup (less unnecessary console output, some guard against a future accidental leak if this code changes), not a fix for a demonstrated issue. If you'd rather not take the cleanup as-is, I'm fine closing this. |
|
I'm just questioning it.. What would be the problem if an assertion did end up in the console log? |
|
I'd leave the console logging in place. |
|
That makes sense. I was treating console output as a separate disclosure surface without establishing a meaningful security boundary between the extension UI and its console. Given that both remain within the browser/extension context, I agree that logging an assertion there isn’t materially different from displaying it in the extension window. And since the existing logs are useful diagnostics, I’ll leave them in place and close the PR. Thanks for the clarification. |
Summary
Small diagnostic-hygiene cleanup in
bootstrap.js: removes threeconsole.log()calls from the extension's background script and tightens the code comment left behind. This is not a fix for a demonstrated exploitable vulnerability — see discussion below.What was removed
onCreated(windowInfo): logged the created window's ID (window-lifecycle info only).onCloseExtensionWindow(windowId): logged the closed window's ID (window-lifecycle info only).onError(error): logged the rejection value from thebrowser.windows.create(...)promise — a generic WebExtensions API error, not extension data.Why
I looked at the actual data flow in
bootstrap.jsand want to correct my original PR description, which overstated this as a HIGH-severity vulnerability. That framing doesn't hold up:bootstrap.jsnever touches SAML request/response/assertion data, captured HTTP traffic, or traced URLs. That data lives entirely insrc/SAMLTrace.js/src/SAMLTraceIO.js, which this file doesn't import or call into.onError) can only receive whateverbrowser.windows.create()rejects with — a standard browser API error (e.g. an unsupported window type/geometry error), not tracer data.Given that, I'm reframing this as a small defensive/privacy cleanup rather than a vulnerability fix: it reduces unnecessary background-page console output and guards against accidentally logging something sensitive if this code changes in the future — not against a demonstrated leak today.
Changes
bootstrap.js— remove the threeconsole.log()calls; comment inonErrornow accurately describes why it's left silent.Happy to close this if you don't see value in the log removal itself.