You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Jörn Nettingsmeier <ne...@apache.org> on 2007/01/23 12:12:26 UTC

lenya, cache poisoning and DoS attacks

hi *!


while toying with my new language selector, i implemented a simple 
on-the-fly rendering of svg graphics to png at arbitrary sizes.

you can request 
http://localhost:8888/modules/languageselector/flag-<lang>-<size>.png
where <lang> can be any of the languages we currently have svg flags for 
(en, de, fr, he, es), and size is a height in pixels.

you will get a custom-sized png that's rendered from the respective svg 
on-demand. this is very handy for modules, because you can provide 
mechanism without second-guessing design decisions.

*but*: svg rendering is rather expensive, and an evil attacker could 
even use it to hog server resources. therefore we must cache.
but since you can have any language in any size, you can also fill cache 
space easily with entries that are unlikely to be ever needed again.

i wonder: how many such potential cache hogs do we have?



regards,

jörn


-- 
Jörn Nettingsmeier

"Hofstadter's Law: It always takes longer than you expect,
even when you take into account Hofstadter's Law."
	- Douglas R. Hofstadter

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org