Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed token leaks #1364

Merged
merged 2 commits into from
Jul 26, 2024
Merged

Conversation

itsKedar
Copy link
Contributor

@itsKedar itsKedar commented Jul 9, 2024

Description

Fixed token leaks for GitLab Issues and also masked token values for SCM GitLab, ADO, Bitbucket

References

#1341

Testing

Tested for SCM GitHub GitLab ADO and Bitbucket

@AvivCx
Copy link
Contributor

AvivCx commented Jul 9, 2024

Logo
Checkmarx One – Scan Summary & Detailsb386632d-4004-477a-865b-a711e1b60c68

No New Or Fixed Issues Found

Comment on lines 96 to 99
<maskPattern>https://([_a-zA-Z0-9]+)@github.com</maskPattern>
<maskPattern>https://([_a-zA-Z0-9]+)@dev.azure.com</maskPattern>
<maskPattern>https://([_a-zA-Z0-9:.\\-]+)@bitbucket.org</maskPattern>
<maskPattern>https://([_a-zA-Z0-9:.\\-]+)@gitlab.com</maskPattern>

Choose a reason for hiding this comment

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

I'd suggest you generalize this, currently it doesn't support self-hosted instances, plus I don't think there is a single web site where you'd want to show the authentication token anyway

<maskPattern>https://([_a-zA-Z0-9:.\\-]+|)@.+</maskPattern>

@satyamchaurasiapersistent satyamchaurasiapersistent merged commit 8d74139 into develop Jul 26, 2024
9 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants