Hacker Newsnew | past | comments | ask | show | jobs | submit | good_guy's commentslogin

How do you prevent from reversing some standard function (eg: MD5, base64, blowfish etc.) from a mangled source?



That's pretty much the reason I posted this. Hilarious.


Similar guide to write a small kernel https://news.ycombinator.com/item?id=7588205


I think it's a typo. it should be 'Videos'.


I had the same thought.i think they are going to use this to flag similar icons(and to show recommended images).so, most likely it'll be reviewed by a human.

Edit:

From the last paragraph. > we will be using the algorithm in the future on Iconfinder to warn us if a submitted icon already exists in our collection but it can also have other practical uses. For example, because images with similar features have the hamming distance of their hashes close, it can also be used as a basic recommendation system where the recommended images are within a certain hashing distance of the current image.



That's exactly what Amazon trying to prevent.


This is a bad idea.it's easy to change the user agent to whatever you want.


There is no reason why it would be a bad idea.

False positives (people who are legitimately using AWS credentials from their phone for some reason, or somebody who is legitimately using AWS credentials from their computer but with an incorrect useragent for some reason) would cause an inconvenience as time is wasted to inspect it, but ultimately little harm would be done.

False negatives (improperly using AWS credentials but with a useragent that looks reasonable) would not be a deviation from the status quo.

You don't need 0% false negative and false positive rates to make this sort of sanity checking worthwhile. Even if you only find a few of the many instances of improperly used credentials, you're better off than if you had done nothing.

(Of course there is the issue of correlating misused credentials with the specific application that is misusing them. I don't know how that is done if they are basing their investigation off of useragents.)



sanitize GET variable!


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: