Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SFU access_token parameter is logged unredacted #1364

Open
hughns opened this issue Jan 7, 2025 · 2 comments
Open

SFU access_token parameter is logged unredacted #1364

hughns opened this issue Jan 7, 2025 · 2 comments

Comments

@hughns
Copy link
Contributor

hughns commented Jan 7, 2025

Describe the bug

What I'm expecting

Log lines like this:

connecting to wss://some.sfu.com/rtc?access_token=<redacted JWT>&auto_subscribe=1&sdk=js&version=2.5.0&protocol=15&adaptive_stream=1&network=wifi [object Object] |

What happens instead

connecting to wss://some.sfu.com/rtc?access_token=unredactedJWT&auto_subscribe=1&sdk=js&version=2.5.0&protocol=15&adaptive_stream=1&network=wifi [object Object] |

Reproduction

Enable debug logging and connect to SFU.

Logs

No response

System Info

Any browser.

Severity

annoyance

Additional Information

The logging in question is at

this.log.debug(`connecting to ${url + params}`, this.logContext);

@lukasIO
Copy link
Contributor

lukasIO commented Jan 7, 2025

hi @hughns

is this a security concern for you?
The token can be seen in the network requests unredacted anyways

@hughns
Copy link
Contributor Author

hughns commented Jan 8, 2025

It's a minor security concern for the case of where console logs are shared or centrally logged and the JWT is unintentionally "leaked".

Depending on the expiry and scope of the allowed permissions by the JWT this might not be a major issue. But, if we simply don't log the token then this side steps any issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants