Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not possible to download files as anonymous user

See original GitHub issue


  • CTFd Version/Commit: 2.0.0 from master
  • Operating System: Debian Stretch, Ubuntu 18.04, …
  • Web Browser and Version: Firefox 63

What happened?

  • In admin, set visibility of challenges to public
  • Logout
  • Open challenge view (/challenges)
  • Click on a challenge with a file
  • Try to download the file (/files/c378d661d2c9e103c4409cd4c92d801f/
  • => Error 403

What did you expect to happen?

  • Click on a challenge with a file
  • Try to download the file
  • File downloads

How to reproduce your issue

see above

Any associated stack traces or error logs


Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

ColdHeatcommented, Dec 8, 2018

The function you probably want is:

from CTFd.utils.config.visibility import challenges_visible

I’ll have a fix ready soon 😃

ColdHeatcommented, Dec 8, 2018

@stefan2904 this should fix your issue. Would be great if you could confirm. Thanks for reporting!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Access denied for anonymous users clicking on download link
I have a content type with a file field that has been set to "download link". This works fine for users who are...
Read more >
Anonymous Users can't Download Data from Document Library
We are now running SP2013 and I'm able to hit the page anonymously but can't download the document. I can view it fine...
Read more >
Anonymous user's can't views/download files uploaded via file ...
You should not give anonymouos to bypass file access control. · Yeah, sure check the updated post. · Permissions on sites/default/files are ok?...
Read more >
User Management: Configuring for Anonymous Users - NcFTPd
The first thing to do is ensure that you have an ftp user in your /etc/passwd file. The important thing about that entry...
Read more >
22.5. vsftpd Configuration Options
All directives not explicitly found within vsftpd's configuration file are set ... anonymous_enable — When enabled, anonymous users are allowed to log in....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found