onebeyond/rascal

LoggableUrl Leaks partial passwords

Closed this issue · 4 comments

The Regex for loggableUrl can leak passwords if the password has a @ in it.
Here: https://github.com/guidesmiths/rascal/blob/2dbe72abce8386eee8762e421ed4b49fbee0c5fc/lib/config/configure.js#L88

This regex matches the first @ found, when it needs to match the last @ found.

For example if the password was "badp@ssword", the log would log: http://user:***@ssword@url instead of the expected http://user:***@url

image

Thanks @matt1097, will resolve

Fixed in rascal@14.4.5

Something strange with the tag. Double checking the fix was published

Yep, all good. Thanks again for reporting