Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fixes FPs in SpringBootActuators query #3506

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

Merged
merged 1 commit into from
May 25, 2020

Conversation

ggolawski
Copy link
Contributor

This PR fixes FPs in SpringBootActuators query, as pointed out in #2901 (comment).

  • No evidence that Spring Actuators are being used, e.g. http.authorizeRequests().anyRequest().permitAll()
    --> The query now makes sure that the permitAll() refers to Spring Actuators (EndpointRequest)
  • Only safe Actuators are enabled, e.g. EndpointRequest.to("health", "info")
    --> The query now raises the flag only if EndpointRequest.toAnyEndpoint() is being used.

More tests to handle the above cases are added.

No evidence that Spring Actuators are being used, e.g. `http.authorizeRequests().anyRequest().permitAll()`
Only safe Actuators are enabled, e.g. `EndpointRequest.to("health", "info")`
@aschackmull aschackmull merged commit 0d75c6a into github:master May 25, 2020
@ggolawski ggolawski deleted the spring-actuators-fix branch June 3, 2020 18:05
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.

2 participants