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

Privilege Escalation Allowed @ /deploy/k8s/base/mailhog/deployment.yaml #18

Open
AaronZhouYu opened this issue Feb 7, 2023 · 0 comments

Comments

@AaronZhouYu
Copy link
Owner

AaronZhouYu commented Feb 7, 2023

Checkmarx (IaC-Security): Privilege Escalation Allowed
Checkmarx Project: AaronZhouYu/TotallySecureApp
Repository URL: https://github.com/AaronZhouYu/TotallySecureApp
Branch: main
Scan ID: d9fa6dd5-d23b-4436-b75a-41a016305f39


Containers should not run with allowPrivilegeEscalation in order to prevent them from gaining more privileges than their parent process

Locations:

Result #1:
Severity: HIGH
State: TO_VERIFY
Status: RECURRENT
    File: /deploy/k8s/base/mailhog/deployment.yaml[24,0]
    Expected value: metadata.name={{mailhog}}.spec.template.spec.containers.name={{mailhog}}.securityContext.allowPrivilegeEscalation should be set and should be set to false
    Actual value: metadata.name={{mailhog}}.spec.template.spec.containers.name={{mailhog}}.securityContext.allowPrivilegeEscalation is undefined
    Review result in Checkmarx One: Privilege Escalation Allowed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant