07 Oct 2021
I’m running Snyk to scan docker images and break the build if they have high or critical vulnerabilities:
snyk test --severity-threshold=high --docker $IMAGE_NAME
However sometimes the upstream image has high or critical vulnerabilities (e.g. at the times of writing this,
debian), so there is very little action one can take (other than moving to a different base image, which is usually not easy). Thus I only want to break the build if there are high or critical vulnerabilities AND they can be fixed by ugrading the base image.
05 Jul 2021
Recently I was involved in a project where KeyCloak was used as an identity proxy: the target app was configured to use KeyCloak as an SSO, but KeyCloak delegated the authentication further to an other IdP. So on login to the target app, the app would redirect the user to KeyCloak, which would further redirect to the IdP’s login page. Upon authenticating there, the IdP redirected back to KeyCloak, which redirected to the target app. This double-redirect flow happened very fast so it was mostly transparent to the user.
My task was to review the security of this setup and I managed to find a few interesting bugs.
19 May 2021
My Argo CD Privilege Escalations post describes some privilege escalation possibilities, if Argo CD projects are not configured securely. In this post I’ll show a complete walkthrough on abusing one of these possible misconfigurations.
19 May 2021
Consider a multi-team GitOps setup with Argo CD: each team has their own repository that holds the team’s Kubernetes yaml files that Argo CD deploys to a shared cluster. Inside the cluster, teams are separated into their own namespaces, and Argo CD only deploys resources to the namespace that belongs to the given team.
Let’s see how this setup can be misconfigured to allow deploying to other team’s namespaces or to the cluster level!
12 May 2021
Open redirects are generally treated as a low risk issue, due to the limited impact (more convincing phishing). However in certain cases a simple open redirect vulnerability can lead to reflected XSS, which I’ll talk about in this post.
Redirecting in a browser can happen in two ways:
- The browser gets a 30x HTTP response code (e.g.
302 Found) with the destination of the redirect in the
If an open redirect vulnerability exist with the second type of redirect, it might be an XSS as well using the
10 May 2021
If an Android app accepts Intents to open a URL in a WebView, then a malicious app installed on the same device might open a