Security issue with TalkerHttpLogger: Bearer tokens #150
Labels
addons
Related to addons/bridge packages like dio_logger and bloc_logger
enhancement
New feature or request
talker_http_logger
Related to talker_http_logger package
Hi,
I was playing with Talker and the talker_http_logger package.
My app uses a piece of code very similar to the example:
Looking at the http logger:
The logger simply writes the request to the logs, including the headers, without obfuscating anything. This is a problem when the headers contain stuff like
Bearer 1234...
. These sensitive values are written in clear to the logs.I would suggest obfuscating these specific fields by default, with maybe a flag to disable the obfuscation.
Cheers
The text was updated successfully, but these errors were encountered: