Aaaaand now there are tens of IPs trying to access /etc/passwd. Tailing my "failed hack attempts" log is kinda fun now.
But if you wrote this to warn me, then thanks!
Re:Show HN: Estimated Reading Time API
by alexbecker on Friday February 19, 2016 @04:10PM
(#11136650)
Also be careful about redirect handling: http://evil.com might redirect you to file:///etc/passwd
Re:Show HN: Estimated Reading Time API
by stevekemp on Saturday February 20, 2016 @06:22AM
(#11139705)
> But if you wrote this to warn me, then thanks!
I did.
You're not the first person to make that kind of mistake, and I assumed it was an obvious enough "attack" that trying to communicate it privately wasn't required.
Re:Show HN: Estimated Reading Time API
by mklopets on Saturday February 20, 2016 @01:12PM
(#11141144)
Though I now have an extra if statement in my code to detect and log this type of 'hacking' attempts in addition to some others, the code was never vulnerable to this in the first place. No file contents are displayed at any time anyway.
http://klopets.com/readtime/?url=file:///etc/passwd
http://klopets.com/readtime/?url=file:///etc/shadow