TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Project Euler Humble Return

254 pointsby nemesisrobotalmost 10 years ago

16 comments

daguavaalmost 10 years ago
You can list what problems you&#x27;ve solved by showing an image generated for you.<p>Ex) <a href="https:&#x2F;&#x2F;projecteuler.net&#x2F;profile&#x2F;daguava.png" rel="nofollow">https:&#x2F;&#x2F;projecteuler.net&#x2F;profile&#x2F;daguava.png</a><p>But you can also use this to quickly test the status of accounts.<p>For example, I was able to find Euler is an admin account by trying<p><a href="https:&#x2F;&#x2F;projecteuler.net&#x2F;profile&#x2F;euler.png" rel="nofollow">https:&#x2F;&#x2F;projecteuler.net&#x2F;profile&#x2F;euler.png</a><p>It tells you it&#x27;s admin in the image, why?<p>Edit: Wonder if they&#x27;re exposing some vulnerability with the HTTP 300 Multiple Files they&#x27;re returning.<p>If you try something like this: <a href="https:&#x2F;&#x2F;projecteuler.net&#x2F;profile&#x2F;.wat" rel="nofollow">https:&#x2F;&#x2F;projecteuler.net&#x2F;profile&#x2F;.wat</a><p>the page confirms a .htaccess file exists at <a href="https:&#x2F;&#x2F;projecteuler.net&#x2F;profile&#x2F;.htaccess" rel="nofollow">https:&#x2F;&#x2F;projecteuler.net&#x2F;profile&#x2F;.htaccess</a> we also find one at <a href="https:&#x2F;&#x2F;projecteuler.net&#x2F;.htaccess" rel="nofollow">https:&#x2F;&#x2F;projecteuler.net&#x2F;.htaccess</a><p>While currently inaccessible, this is significant information leak<p>All directories allow this, so you can do some digging to find what files exist.<p>Edit 2:while logged in, you can enumerate all usernames with a skill level attached by using URLs like<p><a href="https:&#x2F;&#x2F;projecteuler.net&#x2F;level=1" rel="nofollow">https:&#x2F;&#x2F;projecteuler.net&#x2F;level=1</a><p>If you try changing the level to a period, the page conveniently tells you there are over 118k users in total (listing the first 10k), and MAY even show accounts without levels, but I&#x27;m not sure.<p>Combine this with the profile image URLs above and you may be able to find more admin account usernames if they have levels associated with them.
评论 #10026420 未加载
评论 #10028458 未加载
评论 #10027864 未加载
aikahalmost 10 years ago
Open source that site. Vet a few devs to have access to the source to begin with then opensource it. Or even better, let the community rewrite the source from scratch. How hard can it be? and there are often a lot of people willing to contribute to open-source projects.
评论 #10026895 未加载
mindcrimealmost 10 years ago
OK, well, here&#x27;s an initial observation:<p>1. Your login page leaks information, as it returns &quot;username not found&quot; if you enter an invalid username. This is a bad idea. Better to simply say &quot;login failed&quot; in any case. Now, thanks to a few minutes of playing around, I have a fairly good idea that &quot;admin&quot; is a valid username on projecteuler.net. For the sake of argument, let&#x27;s assume that&#x27;s a real account, and actually has some administrative access... that&#x27;s a bad idea. &quot;Security through obscurity&quot; is oft derided, but no sense making it easy for the bad guys. Make your admin username &quot;flummoxedrabbit&quot; or something that nobody bothers trying. As it is, I&#x27;m hoping this &quot;admin&quot; account is a dummy or a honeypot or something, but if it isn&#x27;t, I definitely encourage you to change that and quit leaking username validity information.<p>2. From the limited testing I did, it doesn&#x27;t appear that you limit the number of failed login attempts. Or if you do, the login limit is awfully high. I tried logging in 10 times and as far as I can tell, I could have kept going. If there really is no limit, it&#x27;s probably not that hard to brute force your password. There are plenty of scripts and browser plugins to sit there and try to login repeatedly, trying to brute force forms like that.<p>3. In addition to limiting the number of login attempts, it&#x27;s possibly a good idea to add a steadily increasing delay before accepting another login try from the same IP address, after each failed login. This will slow down at least some attempts to brute force your password.<p>4. You could consider some sort of Multi-Factor Authentication setup.<p>5. You could also consider adding code to do something similar to what fail2ban does, and automatically block connections from an IP where more than <i>X</i> failed logins originate in some period of time.
评论 #10026202 未加载
评论 #10026406 未加载
评论 #10026225 未加载
评论 #10026279 未加载
评论 #10026210 未加载
dyoo1979almost 10 years ago
It would be nice if source were provided, so that we can do a whitebox analysis. I don&#x27;t have confidence that there is one single point of failure here, given that the site has already been compromised multiple times.
评论 #10026046 未加载
trengrjalmost 10 years ago
Part of me learning to code was by going through the challenges on Project Euler and I always get a sense of nostalgia when reading about it.<p>It is a pity it keeps getting hacked. I think that the site owners are more interested in algorithms and mathematics than mundane engineering. It would probably be a good idea to open source the site.
评论 #10027110 未加载
klekticistalmost 10 years ago
Despite the whole situation being rather embarrassing, it seems like they&#x27;re handling this quite well. Whitehat to the rescue!
edemalmost 10 years ago
I don&#x27;t get it why someone would hack project euler.
评论 #10025640 未加载
评论 #10025837 未加载
评论 #10025968 未加载
brokentonealmost 10 years ago
The ultimate project euler challenge!
aesthetics1almost 10 years ago
Cue thousands of determined hackers descending on Project Euler! It would be great if the community could find the exploit and save the site.
评论 #10025302 未加载
评论 #10026043 未加载
kelukelugamesalmost 10 years ago
I can&#x27;t wait for someone to figure out the exploit. Very excited. Go crowdsourcing!
Houshalteralmost 10 years ago
I am unable to login to my account, so I&#x27;m not able to test this. But if I remember correctly this site used a poor captcha. There has been a lot of advancement at captcha breaking software in recent years. If they used some kind of custom captcha to prevent password guessing, then it&#x27;s not extremely secure.
sfrank2147almost 10 years ago
Does anyone know how Project Euler was storing the passwords?
评论 #10025403 未加载
logicrimealmost 10 years ago
Haven&#x27;t they been wrecked once before this most recent incident?<p>I find it concerning that folks are so eager to rush back into a warzone when they know it&#x27;s not safe. Piling onto a recovering website after a cyberattack is akin to running back into a field where landmines were found. Maybe somebody was able to remove a landmine or two, but wouldn&#x27;t it be wiser to just walk around it?
评论 #10025801 未加载
kibaalmost 10 years ago
I checked the license. It appears that the content is licensed under creative common attribution non-commercial.<p>I haven&#x27;t found any indication that the website behind Project Euler is open source or follow open source development processes.
评论 #10025330 未加载
zajdalmost 10 years ago
It&#x27;s a shame the maintainer of the site is going to let it fall into obscurity instead of just adopting more modern development practices.<p>edit. Such as allowing people to audit the source of the site as opposed to requesting pentesting.
评论 #10025475 未加载
评论 #10025343 未加载
评论 #10025772 未加载
goldenkeyalmost 10 years ago
Why is project euler not on github? Yeah..no one&#x27;s gonna help unless you open-source your project buddy.
评论 #10025458 未加载
评论 #10025667 未加载
评论 #10025924 未加载