Things you should do now (2011)
secure.phabricator.com
Things you should do now (2011)
1–10 of 115 posts
Re: Things you should do now (2011)
#2Re: Things you should do now (2011)
#3That start ids at a gigantic number idea is great, even though I've never encountered a bug caused by not doing it.
Re: Things you should do now (2011)
#4That start ids at a gigantic number idea is great, even though I've never encountered a bug caused by not doing it.
Re: Things you should do now (2011)
#5I can imagine how companies will be taxed extra for this somewhere in the (probably not so near) future.
Re: Things you should do now (2011)
#6That start ids at a gigantic number idea is great, even though I've never encountered a bug caused by not doing it.
Re: Things you should do now (2011)
#7That start ids at a gigantic number idea is great, even though I've never encountered a bug caused by not doing it.
A better tip would be to use something like time-ordered uuids: You can‘t misuse them for something different and the added bonus is that no one can iterate your db records by just incrementing the url.
Re: Things you should do now (2011)
#8"As of 2011 Facebook is in the second group, and spends several milliseconds of CPU time sanitizing every display string on its way to the browser, which multiplies out to hundreds of servers worth of CPUs sitting in a datacenter paying the price for the invalid UTF-8 in the databases." I can imagine how companies will be taxed extra for this somewhere in the (probably not so near) future.
Re: Things you should do now (2011)
#9"As of 2011 Facebook is in the second group, and spends several milliseconds of CPU time sanitizing every display string on its way to the browser, which multiplies out to hundreds of servers worth of CPUs sitting in a datacenter paying the price for the invalid UTF-8 in the databases." I can imagine how companies will be taxed extra for this somewhere in the (probably not so near) future.
Why not sanitize it once when accessed, write the sanitized result back to the database and set a flag on the record. Use only presanitized strings if the flag is set. After some time, when enough of your strings are flagged, run a sanitizer over the rest that hasn't been touched. That way you don't waste those milliseconds. However, I can imagine that this would waste quite some storage bandwidth because such a read…
The longer you wait, the more difficult it is to solve.