CTFd / CTFd/CTFd

Can't download files from AWS S3

Open
#1,418 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
6.8k
Forks
2.8k
Avg merge
1d 6h
Merged PRs (30d)
5

Description

**Environment**:

- CTFd Version/Commit: 2.4.2
- Operating System: Ubuntu 18.04 LTS
- Web Browser and Version:

**What happened?**
I can upload and delete files from S3, but I can't download it successfully. There seems to be some issues with the URL

**What did you expect to happen?**
To successfully download the files.

**How to reproduce your issue**

**Any associated stack traces or error logs**
This is the URL CTFd redirects me to.
```
https://\.s3-\.amazonaws.com/ **\/** f2645148b96d9aa93a6aa2d14daee58c/?response-content-disposition=attachment%3B%20filename%3D&AWSAccessKeyId=\&Signature=%2FHlDyLpTKWSeynctwoU9ormQU2w%3D&Expires=1589787975
```

Notice that the bucket name in bold is extra and I can download the file once I remove it. Is this some sort of bug with CTFd URL routing to S3 to download the file? Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.