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

chore: add vulnerable code #19

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

chore: add vulnerable code #19

wants to merge 1 commit into from

Conversation

mitchell-liatrio
Copy link

No description provided.


@GetMapping("/posts/{id}")
public Post getPostById(@PathVariable("id") String id) {
log.info("{}: received a GET request for post with id {}", deploymentType, id);

Check failure

Code scanning / CodeQL

Log Injection High

This log entry depends on a
user-provided value
.

@GetMapping("/posts/search")
public Collection<Post> searchPosts(@RequestParam("query") String query) {
log.info("{}: received a GET request to search posts with query: {}", deploymentType, query);

Check failure

Code scanning / CodeQL

Log Injection High

This log entry depends on a
user-provided value
.
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.

1 participant