Problemi di sicurezza per WordPress: vulnerabilitร  XSS

Il 29/12/2010 mentre me ne stavo tranquillamente in ufficio, il mio blog ย รจ stato defacciato e la home page รจ stata sostituita con un reindirizzamento ad un sito contenente immagini porno. Non รจ la prima volta che avviene, e quando succede รจ una gran rottura di balle, perchรจ bisogna ripristinare alcuni file del sistema e rivedere tutti i folder nei quali sono stati caricati file.

Per chi non lo sapesse il termineย Defacing,ย nell’ambito della sicurezza informatica, viene utilizzato per definire il cambiamento illecito della home page di un sito web (la sua “faccia”) e la modifica di una o piรน pagine interne. Questa pratica รจ condotta da persone non autorizzate (dettiย cracker, non hacker) e all’insaputa di chi gestisce il sito. E’ illegale in tutti i paesi del mondo.

Le motivazioni di tale atto vandalico possono essere di vario tipo, dalla dimostrazione di abilitร  fino a ragioni ideologiche e politiche. Le tecniche utilizzate per ottenere i permessi di accesso in scrittura al sito sfruttano solitamente i bug presenti nel software di gestione del sito oppure nei sistemi operativi sottostanti: nel mio caso, questa volta, credo che il daface sia stato effettuato tramite un bug di WordPress.

Casualmente mentre ero li che aggiornavo e ripristinavo il mio blog, ecco che mi arriva una mail del simpatico Matt Mullenweg, che dopo aver comunicato la presenza di un aggiornamento critico, mi augura Merry WordPressing in 2011!

First off, happy holidays. ๐Ÿ™‚ I hope this time of the year, chilly for many of you, has given you time to enjoy family, friends, and loved ones and reflect on the year before and the year to come.

My last message to you this year is an important but unfortunate one: we’ve fixed a pretty critical vulnerability in WordPress’ core HTML sanitation library, and because this library is used lots of places it’s important that everyone update as soon as possible.ย I realize an update during the holidays is no fun, but this one is worth putting down the eggnog for. In the spirit of the holidays, consider helping your friends as well.ย You can update in your dashboard, on the “updates” tab, or download the latest WordPress here:ย http://wordpress.org/download/

The official release announcement is here: http://wp.me/pZhYe-qt

Merry WordPressing in 2011

Matt Mullenweg
http://ma.tt | http://wordpress.org | http://automattic.com

Cliccando sul comunicato ufficiale, si parla proprio di vulnerabilitร  XSS:

3.0.4 Important Security Update

Posted December 29, 2010 by Matt Mullenweg. Filed under Releases,Security.

Version 3.0.4 of WordPress, available immediately through the update page in your dashboard or for download here, is a very important update to apply to your sites as soon as possible because it fixes a core security bug in our HTML sanitation library, called KSES. I would rate this release as โ€œcritical.โ€

I realize an update during the holidays is no fun, but this one is worth putting down the eggnog for. In the spirit of the holidays, consider helping your friends as well.

If you are a security researcher, weโ€™d appreciate you taking a look over this changeset as well to review our update. Weโ€™ve given it a lot of thought and review but since this is so core we want as many brains on it as possible. Thanks to Mauro Gentile and Jon Cave (duck_) who discovered and alerted us to these XSS vulnerabilities first.

Apperรฒ, Matt classifica questa release Critical e ce lo dice sorridendo: peccato che su una vulnerabilitร  XSS (anche detta di Cross Site Scripting) non c’รจ una fava da ridere!

Insomma, alla fine grazie a questo “buchetto” ho passato 2 ore serali a ripristinare il blog, un pรฒ di autorizzazioni e soprattutto dopo aver aggiornato WordPress alla versione 3.0.4 .

[Provocazione ON]

Beh questo รจ secondo me il brutto dei prodotti Open Source: con chi te la prendi in caso di danni generati da una falla di questo tipo?

[Provacazione OFF]

PS: ovviamente faccio riferimento a tutti i blog / siti che utilizzano wordpress come piattaforma su hosting privati e non su WordPress.com