Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSP Bypass can't be solved with Hastebin anymore (once again) #539

Open
c0mput3r5c13nt15t opened this issue Mar 1, 2023 · 7 comments
Open

Comments

@c0mput3r5c13nt15t
Copy link

Describe the bug
Hastebin which was the alternative to pastebin changed their API to require authentication for getting the raw content (see docs). You can't however add the required token as a URL parameter, but instead have to set the header, which makes the challenge unsolvable. (Unless you use something like Burp Suite to capture the request and change the header, which is not meant to be part of the challenge.)

To Reproduce
Steps to reproduce the behaviour:

  1. Go to hastebin
  2. Create a script
  3. Share it
  4. Replace /share/ with /raw/
  5. Be disappointed because you get a 401

Expected behaviour
You would expect to just get the raw content.

Screenshots
This is the error message you get when trying to access the raw content
Screenshot_20230301_224724

Additional context
Hastebin docs for reference

Links to the hastebin
https://hastebin.com/share/omicituwup.scss
https://hastebin.com/raw/omicituwup.scss (will give you the shown error message)

Hope it helps and that I didn't overlook anything.

@digininja
Copy link
Owner

digininja commented Mar 1, 2023 via email

@c0mput3r5c13nt15t
Copy link
Author

Could GitHub Gist work?

@digininja
Copy link
Owner

digininja commented Mar 1, 2023 via email

@c0mput3r5c13nt15t
Copy link
Author

Just checked but there seems to be the same MIME type issue that already made postbin useless

@digininja
Copy link
Owner

digininja commented Mar 1, 2023 via email

@c0mput3r5c13nt15t
Copy link
Author

I've now tried a few of these services, but all of them seem to suffer from this issue

@digininja
Copy link
Owner

I've asked on Twitter for alternatives, will see what comes back.

https://twitter.com/digininja/status/1631238650951245824

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants