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 rule based DL cases for typescript. #98

Closed
wants to merge 2 commits into from

Conversation

AksChaudhari
Copy link
Contributor

Add non compliant and compliant samples for typescript detectors.

Note: All the test cases have 100% recall and precision.

Copy link
Contributor

@saurabh-amazon saurabh-amazon left a comment

Choose a reason for hiding this comment

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

Reviewed all changes. Changes look fine. Approved.

Comment on lines +12 to +13
// Compliant: Trusted user input is being passed into dynamically executable code.
let calculated: number = eval("2 + 3");
Copy link
Contributor

Choose a reason for hiding this comment

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

the example doesn't apply to the user input.

changeOrigin: true,
onProxyReq,
onProxyRes,
// Noncompliant: xfwd's defaults value is true.
Copy link
Contributor

Choose a reason for hiding this comment

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

what is the default value of the xfwd, since you mention above that the xfwd default value as false

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.

3 participants