oidc-client-ts
oidc-client-ts copied to clipboard
Security issue: Improper Output Neutralization for Logs
A low security issue is raised by the library.
Description A function call could result in a log forging attack. Writing untrusted data into a log file allows an attacker to forge log entries or inject malicious content into log files. Corrupted log files can be used to cover an attacker's tracks or as a delivery mechanism for an attack on a log viewing or processing utility. For example, if a web administrator uses a browser-based utility to review logs, a cross-site scripting attack might be possible.
Recommendations Avoid directly embedding user input in log files when possible. Sanitize untrusted data used to construct log entries by using a safe logging mechanism such as the OWASP ESAPI Logger, which will automatically remove unexpected carriage returns and line feeds and can be configured to use HTML entity encoding for non-alphanumeric data. Only write custom blacklisting code when absolutely necessary. Always validate untrusted input to ensure that it conforms to the expected format, using centralized data validation routines when possible.
Files /src/JsonService.ts 120 /src/JsonService.ts 177 /src/utils/Logger.ts 89 /src/utils/Logger.ts 136
Is this something you can have a look on? Thank you