Attacking Storage Services Hitb
AI Generated Summary
AI Generated Content Disclaimer
Note: This summary is AI-generated and may contain inaccuracies, errors, or omissions. If you spot any issues, please contact the site owner for corrections. Errors or omissions are unintended.
This deck is “Attacking Storage Services: Lynchpin of Cloud Services”, presented at HITB CyberWeek 2020’s Red Team Village. In a 30 minute session it argues that cloud storage underpins virtually every cloud service, walks through real world case studies showing the impact of storage misconfigurations and dangling references, lays out a structured attack methodology, and closes with defenses for cloud vendors and tenants, including AWS Config auto remediation and Scout Suite scanning.
Summary
The deck opens by defining scope: cloud storage services such as AWS S3, Azure Storage, GCP Storage, Digital Ocean Spaces, SharePoint, OneDrive, Dropbox, Google Drive and code repositories like GitHub and BitBucket, used to store files, source code, transient objects, keys and secrets. The motivation slide states that cloud storage is a lynchpin for cloud services: data is decoupled from compute, PaaS needs storage for application source code, FaaS for function source code, and an unbelievable number of people assume storage is a good place for passwords, keys and API secrets.
Three named case studies show impact. The first covers authenticated user access (HackerOne report 128088). The second covers the Rocket.chat installer referencing an unclaimed S3 bucket, enabling supply chain attacks (HackerOne report 399166). The third covers fwupd CVE-2020-10759: an unclaimed S3 bucket in the Linux Vendor Firmware Service combined with a PGP signature bypass, which in 26 days saw 2.5 million update requests from 500,000 unique IPs.
The methodology lays out a loop: enumerate, identify vulnerabilities, exploit, post exploitation and pivoting, then circle back. Enumeration starts from the facts that storage names are unique across a provider yet often predictable for an organization, and hosted storage makes port scanning pointless. Tooling includes cloud_enum, Cloud Scraper, an AWS cloud bucket search engine and Google dorking, with RedHuntLabs’ Awesome-Asset-Discovery lists as the index. Exploitation focuses on permissions: anonymous access, misconfigured writes, restriction to any authenticated user on the platform, and lax IAM rules. Azure specifics add overly privileged SAS URLs (a full rwdlacup example yields the storage account), leaked account keys searchable on GitHub via DefaultEndpointsProtocol, and Azure Storage Explorer as the post-compromise browser.
Post exploitation paths include document metadata usernames via FOCA or exiftool, PaaS and FaaS source code leading to RCE, high-value bucket data, and secrets enabling network pivots. Three chains close the attacking half: SSRF to EC2 takeover via metadata credentials and a bucket of PEM files, Elastic Beanstalk compromise by predicting the bucket name from account id and region and abusing CI/CD to deploy a backdoored shell, and the AWS Cognito research finding more than 1 in 5 configurations insecure. The defense section, captioned “a.k.a things everyone should do but no one cares”, splits duties: vendors should warn on bad configurations and automate remediation with AWS Config, while tenants should treat IAM as key, allow no public access unless required, remember the authenticated user setting is not what you want, and scan periodically with Scout Suite. Disaster preparation closes the arc: simulate hacks, observe, fine tune and revalidate.
Key Themes
- Cloud Storage as Critical Infrastructure: S3, Azure Storage, GCP Storage, Spaces and code repositories hold files, source code, keys and secrets, and PaaS/FaaS depend on them, so storage compromise cascades.
- Real-World Case Studies: HackerOne reports 128088 and 399166, and fwupd CVE-2020-10759 with 2.5 million update requests from 500,000 unique IPs in 26 days.
- Attack Methodology: A repeatable loop of enumeration, vulnerability identification, exploitation, post exploitation and pivoting.
- Enumeration Techniques: Predictable globally unique names, cloud_enum, Cloud Scraper, bucket search engines, Google dorking, S3 URL formats and region identification via any-region requests.
- Permission Failures and Azure Specifics: Anonymous access, misconfigured writes, any-authenticated-user ACLs and lax IAM, plus overly privileged SAS URLs and leaked account keys via DefaultEndpointsProtocol.
- Post-Exploitation and Pivoting: Document metadata usernames, source code leading to RCE, high-value data, and secrets enabling network pivots.
- Defenses for Vendors and Tenants: AWS Config auto remediation, IAM discipline, least public access, periodic Scout Suite scans, and disaster rehearsal by simulating hacks.
Notable Points
- Storage services covered: AWS S3, Azure Storage, GCP Storage, Digital Ocean Spaces, SharePoint, OneDrive, Dropbox, Google Drive, and code repositories such as GitHub and BitBucket.
- Case study references: HackerOne reports 128088 (authenticated user access) and 399166 (Rocket.chat installer unclaimed S3 bucket); fwupd CVE-2020-10759 combined a dangling LVFS S3 bucket with a PGP signature bypass in fu-keyring-gpg.c.
- The fwupd incident recorded 2.5 million update requests from 500,000 unique IPs in 26 days.
- The methodology loop: enumerate and gather information, identify vulnerabilities, exploit, post exploitation and pivoting, circle back to step one.
- AWS S3 URL formats: https://s3.amazonaws.com/bucket_name and https://
.s3.amazonaws.com; REST style URLs need region tagging, and a request to any random region URL reveals the bucket’s correct region. - Enumeration tools: cloud_enum (initstring), Cloud Scraper (jordanpotti/CloudScraper, extracts cloud URLs from website HTML), an AWS cloud bucket search engine and Google dorking, curated in RedHuntLabs’ Awesome-Asset-Discovery repositories.
- Permission-focused targets: anonymous access granted on a bucket, misconfigured write access, “authenticated user” restrictions meaning any authenticated user on the platform, and lax IAM rules or policies.
- Azure: SAS URLs like sp=rwdlacup grant storage account control; leaked account keys are found on GitHub by searching DefaultEndpointsProtocol; container listing at https://
.blob.core.windows.net/ ?restype=container&comp=list. - The SSRF to EC2 chain ends in a bucket of PEM files for all EC2 boxes and an iam:* backdoor user; the Elastic Beanstalk chain predicts the bucket name from account id and region, then abuses CI/CD to deploy the backdoor to the official website.
- The AWS Cognito internet-scale analysis collected 2,504 identity pool identifiers via CommonCrawl and APK decompilation, finding more than 1 in 5 configurations insecure, 906 S3 buckets with sensitive information and 1,572 lambda functions exposing at least 78 sensitive environment variables.
Notable Quotes
“Cloud Storage is a Lynchpin for cloud services”
“Looks can be deceiving”
“Letโs hunt in the dark”
“Donโt leave keys to the kingdom in bucket”
“From Beans to RCE”
“Authenticated user is most definitely not the setting you want”











































