Skip to content

SHP-183/resolve github security conflicts - #176

Merged
jshudbrd merged 10 commits into
devfrom
SHP-183/resolve-github-security-conflicts
May 25, 2026
Merged

SHP-183/resolve github security conflicts#176
jshudbrd merged 10 commits into
devfrom
SHP-183/resolve-github-security-conflicts

Conversation

@jshudbrd

@jshudbrd jshudbrd commented May 24, 2026

Copy link
Copy Markdown
Collaborator

Resolves the current 36 security issues flagged by Bearer across the code base. The resolved changes by category are:

  • Information exposure through an exception
  • Leakage of information in logger message
  • Observable timing discrepancy
  • Unsanitized dynamic input in file path
  • Leakage of sensitive data in cookie

Note:
A suppression comment has been applied to Leakage of sensitive data in cookie and Unsanitized dynamic input in file path as these are not genuine security threats. The cookie stores a signed JWT and the file path is hard coded in an internal developer only function.

@jshudbrd
jshudbrd requested a review from Bralc003 May 25, 2026 06:09
@jshudbrd
jshudbrd marked this pull request as ready for review May 25, 2026 07:34
return null;
}
if (password.length === 0 || password === null || showRequired) {
if (password.length < 1 || password === null || showRequired) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I don't think this would fix the error this is just doing the same thing.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I'm pretty sure it's just flagging the comparison operator, but I'll make the change.

@Bralc003 Bralc003 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I was looking at the password input field and I think it should be fine to change it back to === 0 and dismiss the alert for this one.

This is basically used for an input field to throw a required flag based on what the user has entered. This alert thinks it is based on a stored password but since it is an input we have not passed through yet it will be fine to dismiss the alert.

@jshudbrd

Copy link
Copy Markdown
Collaborator Author

I was looking at the password input field and I think it should be fine to change it back to === 0 and dismiss the alert for this one.

This is basically used for an input field to throw a required flag based on what the user has entered. This alert thinks it is based on a stored password but since it is an input we have not passed through yet it will be fine to dismiss the alert.

A lot of the issues being flagged are similar and aren't actually security vulnerabilities, just bearer flagging keywords near comparison operators.

@jshudbrd
jshudbrd requested a review from Bralc003 May 25, 2026 08:41

@Bralc003 Bralc003 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Good Work! I think with the bearer security flagging key words we probably could have just dismissed them since they weren't actually a security threat

@jshudbrd

Copy link
Copy Markdown
Collaborator Author

Good Work! I think with the bearer security flagging key words we probably could have just dismissed them since they weren't actually a security threat

Dismissing would work, but I think it would just re-flag it every time the scan is run. Other solution is to just use the suppression comment, but in this instance its a small fix anyway.

@jshudbrd
jshudbrd merged commit ed09017 into dev May 25, 2026
1 check passed
@jshudbrd
jshudbrd deleted the SHP-183/resolve-github-security-conflicts branch May 25, 2026 08:58
@Bralc003
Bralc003 restored the SHP-183/resolve-github-security-conflicts branch May 25, 2026 09:17
@Bralc003
Bralc003 deleted the SHP-183/resolve-github-security-conflicts branch May 25, 2026 09:19
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

Successfully merging this pull request may close these issues.

2 participants