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

Add CORS query to C# pack #90

Merged
merged 4 commits into from
Dec 20, 2024
Merged

Add CORS query to C# pack #90

merged 4 commits into from
Dec 20, 2024

Conversation

Kwstubbs
Copy link
Contributor

@Kwstubbs Kwstubbs self-assigned this Dec 19, 2024
@@ -0,0 +1,67 @@
import csharp
Copy link
Collaborator

@michaelnebel michaelnebel Dec 19, 2024

Choose a reason for hiding this comment

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

As a follow up it would be nice, if this module is imported in https://github.com/GitHubSecurityLab/CodeQL-Community-Packs/blob/main/csharp/src/security/JsonWebTokenHandler/JsonWebTokenHandlerLib.qll and then the code duplication can be deleted.

@@ -0,0 +1 @@
experimental/CWE-942/CorsMisconfiguration.ql
Copy link
Collaborator

Choose a reason for hiding this comment

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

Path needs to be adjusted.

@@ -0,0 +1 @@
experimental/CWE-942/CorsMisconfigurationCredentials.ql
Copy link
Collaborator

Choose a reason for hiding this comment

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

Path needs to be adjusted.

Copy link
Collaborator

@michaelnebel michaelnebel left a comment

Choose a reason for hiding this comment

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

Looks good to me!
Thank you! 👍

@Kwstubbs Kwstubbs merged commit 853765d into main Dec 20, 2024
13 checks passed
@Kwstubbs Kwstubbs deleted the cors-csharp branch December 20, 2024 09:58
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