HNHacker News
TopNewBestAskShowJobs

mrfu

25 karma · joined November 16, 2009

submissionscomments
mrfu··on CSRF: Cross-Site Request Forgeries
* These are submitted with a form (over POST, hopefully) *

I don't think that the author implies that using POST prevents CSRFs but the article seems to imply it. In case anyone thinks it is the case: using POST won't prevent a CSRF.

Cross Site Request Forgeries occur when a user opens an "evil" page on site B, while being logged on site A. If site A solely relies on cookies in order to identify logged users, there is a risk of CSRF. The attack exploits the fact that the user's browser will always send the auth cookies when issuing a request to siteA. If the evil page on siteB embeds an image (or script, or any resource that can be loaded using an URL) whose source is an URL on siteA, the browser will request the resource on siteA with the auth cookie coming along.

In order to issue a POST request to siteA from the evil page, the attacker only has to submit a crafted POST form using an iframe.

mrfu··on Reducing Java Memory Usage and GC with UseCompressedOops VM Option
It is not clear whether it reduces the heap size, or the overall footprint of the java process.

By the way, if anyone knows of a method to reduce the RSS size of the java process, I'd be more than grateful to hear about it.

mrfu··on I am a great programmer, but horrible algorithmist
As a programmer, I have been hugely influenced by mathematics. I don't say it in the sense that I use math heavy concepts when programming, but the practice and experience I gained through mathematics have improved my programming style (more rigorous approach) as well as my understanding of algorithms.
mrfu··on Your Phone Loses Value Pretty Fast (Unless It's an iPhone)
"At Priceonomics, we firmly believe that resale value is the best objective indicator of product quality."

I may have missed something, but given that prices are supposed to reflect the supply vs demand ratio (in a sane market), how can they end up "firmly" believing that resale value is an objective indicator for quality ?

mrfu··on The Spider of Doom
There are two problems.

1: disabling cookies bypasses security checks

2: a GET request is not side-effect free

The root cause is the combination of both issues.

mrfu··on Using Wolfram Alpha to prove 1=0
Riddle me this: what value does the power series Σn=0∞xn/n! have, in terms of x? Of course, the answer is ex

From my (fuzzy) math memories, I thought that:

exp(x)= 1 + (x^1/1!) + (x^2/2!) + ... + (x^n/n!) + o(x^n) _near_ x=0

mrfu··on SVG Girl IE9 HTML5 Promo
More like a less gloomy http://en.wikipedia.org/wiki/Serial_Experiments_Lain
mrfu··on Why Africa May Never Produce a Facebook, Groupon, Zynga or Google
I totally agree that each country is different (I am half-african and I've lived in a west african country for more than 15 years). The issue is way more complex than it appears. But as far as my experience can tell, corruption makes every single effort required to build something a real pain.
mrfu··on Why Africa May Never Produce a Facebook, Groupon, Zynga or Google
How about corruption and lack of political stability ?
mrfu··on Hotz fires a powerful blast back at Sony's California jurisdictional claims
I "vote" with my money too. I wonder if there is an opportunity for an app that would easily enable a consumer to check whether the company (s)he is willing to buy from is in line with its ethics.
mrfu··on Your code should be taken out back, lined up against a wall, and machine-gunned
For further information http://insecure.org/stf/smashstack.html is an interesting read.