Skip to content
Info disclosure Write-up Advanced

Hacking an AWS hosted Kubernetes backed product, and failing

The report describes a penetration test of an AWS EKS-hosted SaaS product where the testers found only minor web application weaknesses, such as cross-tenant information disclosure via GitHub SSO middleware, but failed to achieve any major compromise due to strong security controls.

blog.appsecco.com

Published on blog.appsecco.com

Our security teams typically test all kinds of applications, infrastructure, cloud services and API setups. We recently engaged with a customer who wanted us to perform a security review of a product deployed on AWS, with an AWS EKS backend.

Riyaz Walikar, on blog.appsecco.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a middleware misconfiguration in the authentication flow allowed cross-tenant access to GitHub information and other tenant identifiers, but the overall system was hardened with least privilege and network segmentation.

What the attacker needed

Valid account on the product; ability to deploy code via GitHub

How it was found

  1. Deploy a Django app that provides a reverse shell in the execution environment.
  2. Use the shell to explore the pod environment, including environment variables and mounted secrets.
  3. Scan the internal network to identify accessible IP addresses and ports.
  4. Attempt to access the Kubernetes API server anonymously or by impersonation.
  5. Check the privileges of the AWS Web Identity token and IAM role attached to the EKS nodes.
  6. Inspect volume mounts for potential host access.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

This is a story about security testers trying to break into a cloud-based product but failing because it was well protected. They found a small issue where they could see some information from other customers, but nothing serious. The product used many security measures like separate spaces for each customer and limited permissions, which stopped the testers from doing more damage.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.