Walkthrough: flaws.cloud Level 1

Author name
L. D.
Published on
1 min read
Walkthrough: flaws.cloud Level 1

Overview

Flaws.cloud is an insecurely configured website hosted in the cloud (AWS), that was created for the purpose of teaching cloud security. The site consists of six levels, which increase in difficulty, however, there are hints at each level to help along the way.

Pre-Requisites

  • Knowledge of AWS
  • Knowledge of AWS CLI
  • Knowledge of S3


Level 1

Level 1's challenge.

The challenge states:

This level is *buckets* of fun. See if you can find the first sub-domain.

S3 (Simple Storage Service) is an AWS object storage service, this means that data is stored in an unstructured format, as opposed to block storage which stores data in block format, like with hard drives. It also stores data in a flat non-hierarchical format, unlike file storage which follows a hierarchy with files and folders. 

A container unit of S3 is a bucket, which can be thought of as a folder, and can hold up to 5TB of data. All S3 buckets have a global name scope therefore need to be unique.

A unique feature of S3 is that it can host static websites with the bucket name used in the URL, combined with the S3 endpoint.

 

Searching for S3's URL endpoint.

 

Taking this into account I added this to the URL.

 

Adding the S3 endpoint to the URL.

 

This leads to an XML page. The page lists details of different files, however, one looks particularly interesting.

 

The contents of the S3 bucket and a secret file.

 

Searching for this file in the URL…

 

Searching for the file.

 

…leads to level 2.

 

Getting the link to Level 2.

 

Conclusion

I believe the lesson of this level is that users of S3 need to ensure they are aware of who has access to their buckets, this includes blocking all public access to their buckets, which is probably why AWS automatically enabled the feature in all buckets by default from April 2023.

Author

Discussion (0)

Subscribe