Re: [spip-dev] Security of SPIP 2.0.8
Thomas Sutton <
thomas@...>
2009-08-06 00:51:38 GMT
Hi Martín,
On 05/08/2009, at 11:15 PM, Martín Gaitán wrote:
> On Wed, Aug 5, 2009 at 3:23 AM, Thomas
Sutton<thomas@...
> > wrote:
>> Hi Emmanuel,
>>
>> It is dangerous for any SPIP site installed according to the
>> instructions.
>> There are two bugs which allow a user (not an admin, or editor, or
>> visitor;
>> any person who can make an HTTP request) to hijack a SPIP site and
>> serve
>> whatever content they like. We know this is true, because it has
>> happened to
>> one of our sites in an attack on 2009-08-01 and 2009-08-03 and
>> we've been
>> able to replicate the attack using the details in the logs.
>>
>> These bugs can be ameliorated on a site-by-site basis by
>> restricting access
>> to /ecrire/ to only those IP addresses which need it, by renaming /
>> ecrire/
>> to something else, by changing the permissions for /config/ such
>> that the
>> server cannot write any files within it, etc. But none of this is
>> mentioned
>> in the install instructions in French
>> <http://www.spip.net/fr_article402.html> or in English
>> <http://www.spip.net/en_article84.html>.
>>
>> Is there a private avenue to report security problems with SPIP? I
>> don't
>> think it's a good idea discussing this issue on a public list
>> (hence there
>> are more details in my private reply to your message), especially
>> when we
>> don't even know where the problem is yet, never mind have a new
>> release out
>> yet. Many other similar projects have procedures for reporting
>> security
>> problems (see Drupal's, for instance <http://drupal.org/security-
>> team>)
>> which make sure that the problem can be debugged and fixed and a
>> patch
>> released before it becomes common knowledge.
>>
>> Cheers,
>>
>> Thomas Sutton
>
> A site of mine has also suffered an attack, injecting iframes pointing
> to servers (in this case x8n.ru). Google (therefore firefox) flagged
> our site as dangerous, so was a really problem.
>
> http://www.google.com/safebrowsing/diagnostic?site=sindicatodelsubte.com.ar
>
> The problem seemed to be a trojan wich infected my customer's
> computer, caching the password to ftp.- There are many similar attacks
> in the last days. Like here
> http://blog.unmaskparasites.com/2009/04/15/malicious-income-iframes-from-cn-domains/
>
> So, ensure your computer is clean.
>
> Martin
Yes, it is important to ensure that computers are not infected with
password stealing Trojans, and we've also been asked to clean up after
one of these password-capture attacks. But the bugs I've reported
dangerous precisely because they do not required usernames or
passwords. At all.
To avoid these bugs while a fix is in progress, I've started removing
all write permissions from `/config/` and `/config/*.php` on all our
2.0 sites. To do otherwise allows the site to be hijacked.
Cheers,
Thomas Sutton
bouncingorange
graphic+web design