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

Spring Boot Actuator challenge hiding an api key in the audit events #815

Closed
4 tasks
Tracked by #37
commjoen opened this issue May 8, 2023 · 15 comments · Fixed by #1107
Closed
4 tasks
Tracked by #37

Spring Boot Actuator challenge hiding an api key in the audit events #815

commjoen opened this issue May 8, 2023 · 15 comments · Fixed by #1107
Assignees
Labels
help wanted Extra attention is needed New Challenge Adding a new Challenge

Comments

@commjoen
Copy link
Collaborator

commjoen commented May 8, 2023

This challenge is about how to not use the spring boot actuator, by hiding an API key in the audit events:

  • Add an AuditEventRepository
  • Add an APIkey received event at AuditEventRepository which is randomly generated
  • enable management.endpoints.web.exposure.include=auditevents in application.properties
  • Create a challenge using the secret at this endpoint and explain why you need to be careful with Actuator configurations
@commjoen commjoen changed the title Spring Boot Actuator challenge (env can be exposed) Spring Boot Actuator challenge hiding an api key in the audit events May 8, 2023
@commjoen commjoen added the New Challenge Adding a new Challenge label May 8, 2023
@commjoen commjoen added the help wanted Extra attention is needed label May 10, 2023
@PavanButke
Copy link

I would like to work. Request to assign to me.

@commjoen commjoen assigned commjoen and PavanButke and unassigned commjoen May 20, 2023
@commjoen
Copy link
Collaborator Author

Hi @PavanButke ! It’s all yours! Feel free to contact us on slack when you have any questions.

@PavanButke
Copy link

Thanks joen! Connecting on slack. Just wanted a link of doc for contributors.

@commjoen
Copy link
Collaborator Author

That would be https://github.com/OWASP/wrongsecrets/blob/master/CONTRIBUTING.md

@PavanButke PavanButke removed their assignment May 25, 2023
@PavanButke
Copy link

I'm facing few errors while set up of code on local..because of which I'm unable to contribute.
Request if anyone can help me in Set Up.
Thanks!

@commjoen
Copy link
Collaborator Author

Hi @PavanButke, what issue are you facing?

@PavanButke
Copy link

PavanButke commented May 25, 2023

Hi,
While setting up in STS.

I can see
===> this tag was giving error

exec

generate-resources

getting these error at Multiple markers at this line

  • Failed to execute mojo org.codehaus.mojo:tidy-maven-plugin:1.2.0:check {execution: validate} (org.codehaus.mojo:tidy-maven-plugin:1.2.0:check:validate:validate
  • was giving following error... I tried commentong it then, in that case application was unable to run

Log:
Description Resource Path Location Type
Failed to execute mojo org.codehaus.mojo:exec-maven-plugin:3.1.0:exec {execution: default} (org.codehaus.mojo:exec-maven-plugin:3.1.0:exec:default:generate-resources)

org.eclipse.core.runtime.CoreException: Failed to execute mojo org.codehaus.mojo:exec-maven-plugin:3.1.0:exec {execution: default}
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeMojo(MavenExecutionContext.java:340)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.lambda$0(MavenExecutionContext.java:291)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:394)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:275)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:290)
at org.eclipse.m2e.core.project.configurator.MojoExecutionBuildParticipant.build(MojoExecutionBuildParticipant.java:57)
at org.eclipse.m2e.core.internal.builder.MavenBuilderImpl.lambda$1(MavenBuilderImpl.java:139)
at java.base/java.util.LinkedHashMap

@commjoen
Copy link
Collaborator Author

ah yes, we do officially not support VScode STS at this point in time.
I was able to run the master branch of the project in vscode Version: 1.78.2 with the following plugins:
image

@commjoen
Copy link
Collaborator Author

Maybe you can reach out to #project-wrongsecrets at slack ? There might be other VSCode users there that can help you using the right config.

@PavanButke
Copy link

PavanButke commented May 26, 2023 via email

@nwolniak
Copy link
Contributor

Hi @commjoen, I would like to contribute to this issue and I noticed that it's probably inactive. Could you assign it to me?

@commjoen
Copy link
Collaborator Author

@PavanButke do you still want to work on this issue? or are you ok if we assign it to @nwolniak ?

@nwolniak
Copy link
Contributor

nwolniak commented Nov 6, 2023

@commjoen If no one has replied, could you please assign me to the task?

@commjoen
Copy link
Collaborator Author

commjoen commented Nov 7, 2023

@nwolniak it is yours :-)

@nwolniak
Copy link
Contributor

nwolniak commented Nov 7, 2023

Oki

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed New Challenge Adding a new Challenge
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants