Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Purr: a simple Scratch URL shortener
- kccuber
-
Scratcher
1000+ posts
Purr: a simple Scratch URL shortener
Are you making sure to go to www.purr.ml? It works perfectly for me –ok i found the issue here. going to just this
purr.ml
- NFlex23
-
Scratcher
1000+ posts
Purr: a simple Scratch URL shortener
Deleted
Last edited by NFlex23 (Sept. 9, 2021 12:14:45)
- NFlex23
-
Scratcher
1000+ posts
Purr: a simple Scratch URL shortener
I might switch.Are you making sure to go to www.purr.ml? It works perfectly for me –ok i found the issue here. going to just thisis causing the issue. you should set up a redirect for purr.ml to www.purr.mlpurr.ml
Edit: currently in the process of switching.
Edit again: Never mind, replit only supports CNAMEs.
Last edited by NFlex23 (Sept. 8, 2021 21:08:18)
- PoIygon
-
Scratcher
1000+ posts
Purr: a simple Scratch URL shortener
YESSSSS I GOT A GOOD REDIRECT WITH A BAD URL
www.purr.ml/vaan
www.purr.ml/vaan
- linearlemur
-
Scratcher
500+ posts
Purr: a simple Scratch URL shortener
You should just randomly generate URLS.
- Ciyob86
-
Scratcher
500+ posts
Purr: a simple Scratch URL shortener
Post BumpLooks like someone is trying to make redirects to other pages lol:You should use fluffyscratch authentication to log usernames.
Last edited by Ciyob86 (Sept. 9, 2021 00:42:25)
- Chiroyce
-
Scratcher
1000+ posts
Purr: a simple Scratch URL shortener
No one saw this?!
I FOUND a vulnerability!!True, though it seems like the other example only allowed Scratch links too. Personally I don't see it as a big problem since there's relatively little chance of nefarious use,Harakou's URL can no longer work, right? Now how do I tell you how this is caused?
- gdpr5b78aa4361827f5c2a08d700
-
Scratcher
1000+ posts
Purr: a simple Scratch URL shortener
No one saw this?!that's not a vulnerability, it's just a bugI FOUND a vulnerability!!True, though it seems like the other example only allowed Scratch links too. Personally I don't see it as a big problem since there's relatively little chance of nefarious use,Harakou's URL can no longer work, right? Now how do I tell you how this is caused?
- Chiroyce
-
Scratcher
1000+ posts
Purr: a simple Scratch URL shortener
that's not a vulnerability, it's just a bugHow? They shared a screenshot of quite a lot of the short URLs, so I could just delete the others as well, but I didn't. Since I wanted to tell them about it. It is vulnerable now.
unless they add auth for the /delete post request endpoint
- DispIay
-
New Scratcher
28 posts
Purr: a simple Scratch URL shortener
how do you login to the admin panel?
- Chiroyce
-
Scratcher
1000+ posts
Purr: a simple Scratch URL shortener
how do you login to the admin panel?You cannot, only @NFlex23 can.
- DispIay
-
New Scratcher
28 posts
Purr: a simple Scratch URL shortener
im trying to look through the code and im trying to figure out whathow do you login to the admin panel?You cannot, only @NFlex23 can.
if request.form == os.environ:
means
Last edited by DispIay (Sept. 9, 2021 08:36:27)
- Chiroyce
-
Scratcher
1000+ posts
Purr: a simple Scratch URL shortener
im trying to look through the code and im trying to figure out whatBasically request.form contains what the user entered, and os.environ is the password, if what the user entered matches the password, they're give access to the admin panel
if request.form == os.environ:
means
- DispIay
-
New Scratcher
28 posts
Purr: a simple Scratch URL shortener
I figured out something, There’s a thing at the top called “import os” and I think the password is in there. All I need to know is where “os” is. Also it’s if request.form['pass'] == os.environ['PASS']:im trying to look through the code and im trying to figure out whatBasically request.form contains what the user entered, and os.environ is the password, if what the user entered matches the password, they're give access to the admin panel
if request.form == os.environ:
means
Also this is the HTML for the page but with random python bits in it.
<form action=“/delete” method=“POST”>
<ul>
{% for item in lst %}
<li>{{item}} <input type=“checkbox” name=“checks” value="{{item}}“></li>
{% endfor %}
</ul>
<br>
<input type=”submit“ value=”Delete selected URLs">
Last edited by DispIay (Sept. 9, 2021 09:16:25)
- Harakou
-
Scratcher
1000+ posts
Purr: a simple Scratch URL shortener
That's the Python module os. It's getting the value of an environment variable, so you're not going to find it in the code.I figured out something, There’s a thing at the top called “import os” and I think the password is in there. All I need to know is where “os” is. Also it’s if request.form['pass'] == os.environ['PASS']:im trying to look through the code and im trying to figure out whatBasically request.form contains what the user entered, and os.environ is the password, if what the user entered matches the password, they're give access to the admin panel
if request.form == os.environ:
means
- DispIay
-
New Scratcher
28 posts
Purr: a simple Scratch URL shortener
B r u hThat's the Python module os. It's getting the value of an environment variable, so you're not going to find it in the code.I figured out something, There’s a thing at the top called “import os” and I think the password is in there. All I need to know is where “os” is. Also it’s if request.form['pass'] == os.environ['PASS']:im trying to look through the code and im trying to figure out whatBasically request.form contains what the user entered, and os.environ is the password, if what the user entered matches the password, they're give access to the admin panel
if request.form == os.environ:
means
- NFlex23
-
Scratcher
1000+ posts
Purr: a simple Scratch URL shortener
I'm not going to make it easy for you to hack purr, am I? I'll probably add sha256 hashes for more security too. (Chiroyce's idea)B r u hThat's the Python module os. It's getting the value of an environment variable, so you're not going to find it in the code.I figured out something, There’s a thing at the top called “import os” and I think the password is in there. All I need to know is where “os” is. Also it’s if request.form['pass'] == os.environ['PASS']:im trying to look through the code and im trying to figure out whatBasically request.form contains what the user entered, and os.environ is the password, if what the user entered matches the password, they're give access to the admin panel
if request.form == os.environ:
means
- NFlex23
-
Scratcher
1000+ posts
Purr: a simple Scratch URL shortener
Deleted, wrong post replied to.that's not a vulnerability, it's just a bugHow? They shared a screenshot of quite a lot of the short URLs, so I could just delete the others as well, but I didn't. Since I wanted to tell them about it. It is vulnerable now.
unless they add auth for the /delete post request endpoint
Last edited by NFlex23 (Sept. 9, 2021 12:06:08)
- NFlex23
-
Scratcher
1000+ posts
Purr: a simple Scratch URL shortener
Nevermind, I think having an admin panel is a bad idea.that's not a vulnerability, it's just a bugHow? They shared a screenshot of quite a lot of the short URLs, so I could just delete the others as well, but I didn't. Since I wanted to tell them about it. It is vulnerable now.
unless they add auth for the /delete post request endpoint
Last edited by NFlex23 (Sept. 9, 2021 11:43:53)
- Quantum-Cat
-
Scratcher
1000+ posts
Purr: a simple Scratch URL shortener
I think it would be better if it included the ID of a project/studio to at least have some kind of knowledge on where the link is taking you.
- Discussion Forums
- » Advanced Topics
-
» Purr: a simple Scratch URL shortener
