Skip to content

Fixed some log vulnerabilities.#39

Merged
XDarinor merged 2 commits into
mainfrom
Task-FixSecurity
May 19, 2026
Merged

Fixed some log vulnerabilities.#39
XDarinor merged 2 commits into
mainfrom
Task-FixSecurity

Conversation

@XDarinor
Copy link
Copy Markdown
Contributor

Some of the logs could leak sensitive data. Now the logs contains URIs only in DEBUG build, the string changes in Release build.

closes #38

Some of the logs could leak sensitive data. Now the logs contains URIs only in DEBUG build, the string changes in Release build.
@XDarinor XDarinor self-assigned this May 19, 2026
@XDarinor XDarinor added critical Feature critical for library functionalities security Security related issue labels May 19, 2026
this.Logger?.LogDebug("Executing GET REST request to {uri}", uri);
#if DEBUG
if (this.Logger?.IsEnabled(LogLevel.Debug) == true)
this.Logger?.LogDebug("Executing GET REST request to {uri}", uri);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed uri exposure

this.Logger?.LogDebug("GET REST request to {uri} executed in {elapsed} ms", uri, stopwatch.ElapsedMilliseconds);
#if DEBUG
if (this.Logger?.IsEnabled(LogLevel.Debug) == true)
this.Logger?.LogDebug("GET REST request to {uri} executed in {elapsed} ms", uri, stopwatch.ElapsedMilliseconds);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed uri exposure

Removed completely the uri logging, just in case. Better logging filtering using the IsEnabled function.
Copy link
Copy Markdown
Contributor Author

@XDarinor XDarinor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed uri exposure

@XDarinor XDarinor merged commit 2c4fc81 into main May 19, 2026
@XDarinor XDarinor deleted the Task-FixSecurity branch May 19, 2026 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

critical Feature critical for library functionalities security Security related issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix logging security issues

2 participants