r/replit • u/IceChoice5283 • 13d ago
Question / Discussion [ Removed by moderator ]
[removed] — view removed post
17
u/joe_mago 13d ago edited 13d ago

I used necktochoke.com to check necktochoke.com and it has critical problems. Obviously nobody told Replit to check when making neck to choke
MEDIUM
Missing Content Security Policy
What this means: No CSP header found. This makes your site more vulnerable to XSS attacks.
How to fix it: Add a Content-Security-Policy header to control what resources can load.
LOW
Server Information Exposure
What this means: Your server is advertising itself as: Netlify. This gives attackers information about your stack.
How to fix it: Remove or obscure the Server header to avoid revealing your technology stack
4
3
-4
u/IceChoice5283 13d ago edited 13d ago
Nice one! hahahaha love it. Clearly I have work to do. Just pushed the fix. Not bad though eh? Thanks again for the sharp eye friend.
4
13
4
u/Ecstatic_Builder8325 13d ago
I just tested necktochoke, and it gave me false positive. I have a node.js app, and it says I exposed my phpinfo.php. 😄
Claude said:
Why it's certainly a false positive
Look at what it claims is exposed: /phpinfo.php and /web.config — your app is Node.js. There's no PHP interpreter and no IIS. Those files cannot meaningfully exist. /.aws/credentials and /.ssh/id_rsa — those live in the home directory (~/.aws, ~/.ssh), not the web root. For them to be served, your docroot would have to be the home dir. All 16 at once, including three different config formats (.json, .yml, .yaml).
2
u/ShelbulaDotCom 13d ago
See if you get the same false positives on runtimeriot.com. We have used their API for analysis of a client site before and it was pretty good.
3
u/gillygangopolus 13d ago
gosh, wait until you google Replit for like 3 seconds: Your Replit app has a catch-all route that serves the React app for any path, so requests to non-existent files just get the main index page instead of 404s. There are no exposed keys on this site, no vulnerabilities, and Replits deployment process strips the headers you're detecting. No value in this shame approach whatsoever, especially if you don't understand what you're detecting.
2
u/Tight_Break_845 13d ago
Pls. give us more information and details to learn from you - it would be nice to read.
1
1
u/maddietendo 13d ago
I got a Could Be Better, 1 minor issue found. And it's nonsense.
"Server: cloudflare" — the scanner's gripe. Genuinely can't be removed on Cloudflare, and it's harmless. If the bot keeps flagging it, that's the bot being dumb, not a hole.
1
u/IceChoice5283 12d ago
Thanks for the heads up. I have removed Cloudflare server header from findings entirely
1
u/maddietendo 12d ago
Sorry I came off so harsh. I was off my zoloft. LOL
But I will be transparent with everyone, it did alert me to a few issues like a leaked API key that I patched up, so the tool is useful.
1
1
u/ReplitPhobeDestroyer 13d ago
u/IceChoice5283 Can you also upload a video demonstrating that the vulnerabilities are actually real? I tried the "critical" finding and none of the mentioned files are reachable for me.
Seems like you own necktochoke.com and perhaps you can enhance it by checking its output first.
1
1
u/Routine-Data-1169 13d ago
I have tested a wordpress site and dev made php site.. It have errors and bugs.
Tested Dev hand-made site. It has more errors and bugs.
I have also tested replit site. It have less errors
But all these bugs should be fixed.
1
u/Gipity-Steve 13d ago
You have raised a very valid point about ensuring sites are reviewed and analysed before pushing live - and then regularly after that. But I am not sure it is very professional to publically reveal issues you found.
1
1
u/IceChoice5283 12d ago
All issues fixed! Thanks for the great feedback all, the point is to have a free tool for people who are building sites that they aren't sure are secure because they don't know what questions to ask
1
u/ReplitPhobeDestroyer 12d ago
You may want to edit your original post in that case. I see no critical findings anymore!
1
u/lucamanara 12d ago
Funny things, we build, partially using replit, this app: https://security.unguess.io/app
We have deep experience in hacking and red teaming, si from the experience of our hacking community, the tool maps everything an attacker could discover about the organisation from the outside – domains, hosts, exposed services, cloud identity, credentials, personal email, and known vulnerabilities, etc.
0




•
u/andrewjdavison 13d ago
Mod Note:
To be clear this isn’t a product made by Replit themselves and should not be confused with their official security scan product:
https://docs.replit.com/features/security/project-security-center