The Joyent Community

A place where the Joyent community can gather, help each other out, and stay informed.

You are not logged in.

#1 2004-12-11 23:20:47

jason
a chief (i started this place)
From: San Francisco
Registered: 2004-06-01
Posts: 8824
Website  Expertise

MT comments on one are off

I had to kill MT-comments.cgi on one again. You won't be able to have people comment for a bit. More later.

Offline

 

#2 2004-12-11 23:33:04

Niloc
Member
From: Vermont
Registered: 2004-06-01
Posts: 875
Expertise

Re: MT comments on one are off

Sure seems like MT cause a lot of issues...

Offline

 

#3 2004-12-11 23:38:07

Eugene
Member
Registered: 2004-06-05
Posts: 835
Expertise

Re: MT comments on one are off

Does that splain the brief hiccup?

Offline

 

#4 2004-12-11 23:45:43

Marten
Moderator
From: Netherlands
Registered: 2004-09-13
Posts: 594
Website  Expertise

Re: MT comments on one are off

Yeah, there were a load of mt-comments.cgi processes running wild.

(edit: faster than Jason, yay)

Last edited by Marten (mveldthuis) (2004-12-11 23:46:02)

Offline

 

#5 2004-12-12 00:03:14

jason
a chief (i started this place)
From: San Francisco
Registered: 2004-06-01
Posts: 8824
Website  Expertise

Re: MT comments on one are off

Eugene wrote:

Does that splain the brief hiccup?

You mean the persistent disruptions of my weekend luncheons?

Yes.

All MT. All mt-comments.cgi.

We typically run at a load less than 1 just about everywhere. Despite having millions of emails and millions of web hits every day now.

One.textdrive.com is a relatively expensive server with dual xeons, 6GB hard wired RAM, 6x73GB RAID-arrayed SCSI 10K Seagate Cheetahs and a FreeBSD kernel optimized for running web and database servers. It's also on a 100Mbps switch with two Gigabit ethernet cards. I have a Linux-threaded static build of MySQL and I load that build into 1GB of RAM when the database server loads up. I have a fast static build of Apache in front of that.

The server is designed to be the kind of thing that could do 20,000,000 requets a day without a problem. In many ways no one uses servers like these for shared hosting.

If you were to lease one.textdrive.com's hardware and it's network connection, if you would cost you about $12,000+ a year. If you were to contract someone like myself to build it and get it up and running, it would cost you about $10,000. If you were to hire someone like me to watch over it, it would cost you well into the six figures a year.

So that said.

MT-comment.cgi, it's inherent nature and the fact that it's targeted so can push this server to loads of nearly 300 (of course, once mt is killed, all returns to normal which is a fine testiment to the setup).

And why is there still spam on http://www.sixapart.com/corner/archives … erie.shtml ? They cleaned up the assault from the 2nd and 3rd, but the 11th is a fresh new day.

Offline

 

#6 2004-12-12 00:22:57

Niloc
Member
From: Vermont
Registered: 2004-06-01
Posts: 875
Expertise

Re: MT comments on one are off

Jason,

I wish we could provide you with that yearly income. :(

Offline

 

#7 2004-12-12 00:25:49

Eugene
Member
Registered: 2004-06-05
Posts: 835
Expertise

Re: MT comments on one are off

How does Six Apart handle the deluge of comment spam and referer spam on typepad and its servers? I mean, aren't they likely to be hit worse than TD with this cr*p?

TypePad = 100% MT
TextDrive = 5-10% MT? (Just a guess.)

Oh and sorry about your lunch.

Last edited by Eugene (2004-12-12 00:26:52)

Offline

 

#8 2004-12-12 00:33:18

jason
a chief (i started this place)
From: San Francisco
Registered: 2004-06-01
Posts: 8824
Website  Expertise

Re: MT comments on one are off

Well, they start by running it as a cluster, with squid proxy fronts and as mod_perl

And who has said they don't have problems with it?

Offline

 

#9 2004-12-12 00:37:36

jason
a chief (i started this place)
From: San Francisco
Registered: 2004-06-01
Posts: 8824
Website  Expertise

Re: MT comments on one are off

Eugene wrote:


Oh and sorry about your lunch.

Thanks but this has been a good solid 8 weeks of this, and it keep tracing back to the same culprit: an old non-threaded perl cgi script that's writing to mysql and doesnt' seem to know how to let go under load.

Offline

 

#10 2004-12-12 00:50:04

jason
a chief (i started this place)
From: San Francisco
Registered: 2004-06-01
Posts: 8824
Website  Expertise

Re: MT comments on one are off

And the renaming thing doesn't work.

They come from pings to things like Weblogs.com

You'll seem the same IP (or the same subnet) hit

id=2146
id=2147
id=2148
id=2149

...

And then crawl down each "Comment Link"

Try a tester, some HEAD, some GET.

And then hit the comment pages (POST) from multiple IPs 10-15 minutes later: they'll spray 2146 with comment spam's equivlant to buckshot; then 2147, then 2148, then 2149 and continue progressing through a given site.

Offline

 

#11 2004-12-12 00:58:33

Eugene
Member
Registered: 2004-06-05
Posts: 835
Expertise

Re: MT comments on one are off

That's fugly.

Offline

 

#12 2004-12-12 01:29:21

compooter
hack
Registered: 2004-06-01
Posts: 923
Website  Expertise

Re: MT comments on one are off

Honestly, I have yet to see any MT spam solution that works. Standard procedure: someone creates a patch, it's circumvented in a matter of days, new spammer technique is adopted en masse. And it only seems to keep worsening with time.

The stats you've laid out on this thread are incredible and I can understand your frustration. The worst part is that everyone just keeps saying a collective "WTF", because MT's so popular you can't just pull the plug.

If it keeps this up though, a year from now MT will be the next IE. Patch after patch after patch, then people will realize it's just flawed and not going to get any better.

Last edited by compooter (2004-12-12 01:30:34)

Offline

 

#13 2004-12-12 02:49:04

jason
a chief (i started this place)
From: San Francisco
Registered: 2004-06-01
Posts: 8824
Website  Expertise

Re: MT comments on one are off

compooter wrote:

The worst part is that everyone just keeps saying a collective "WTF", because MT's so popular you can't just pull the plug.

Sure I can. I can't let a few sites be responsible for all of my web servers downtime can I?

Offline

 

#14 2004-12-12 03:02:04

jason
a chief (i started this place)
From: San Francisco
Registered: 2004-06-01
Posts: 8824
Website  Expertise

Re: MT comments on one are off

With the scans, and file intregrity checks that we do "post-assault" (we don't just shrug our shoulders and say, 'ah shucks, that mt comment spam. cute little guy.').

I would say that the worse ones over the last month has probably costed what amounts to $4000 in Man Hours and nearly all of our httpd availabillity issues (people haven't been able to delete their logs for a while ...).

Offline

 

#15 2004-12-12 03:04:10

justin french
Joyeur Emeritus
From: Melbourne, Australia
Registered: 2004-06-01
Posts: 824
Website  Expertise

Re: MT comments on one are off

Pulling the plug on comments sounds pretty good too right now. I think maybe we need a "switch" campaign similar to the Apple and Firefox campaigns. There are free, opensource alternatives out there like Txp and WP which don't fail as miserably as MT, and can do an equally good job, all for free.

Offline

 

#16 2004-12-12 03:06:15

Niloc
Member
From: Vermont
Registered: 2004-06-01
Posts: 875
Expertise

Re: MT comments on one are off

jason wrote:

compooter wrote:

The worst part is that everyone just keeps saying a collective "WTF", because MT's so popular you can't just pull the plug.

Sure I can. I can't let a few sites be responsible for all of my web servers downtime can I?

Not really, no matter how popular a piece of software is, if it takes that much time to support, I don't see how it can be that worth it, from a support and business side of things.

Edit:
Woops, I forgot about Windows. ;)

Last edited by Niloc (2004-12-12 03:07:09)

Offline

 

#17 2004-12-12 03:13:26

justin french
Joyeur Emeritus
From: Melbourne, Australia
Registered: 2004-06-01
Posts: 824
Website  Expertise

Re: MT comments on one are off

... and if Daring Fireball can live without comments, what site REALLY needs them, apart from those trying-to-be-a-forum blogs like whitespace.

Offline

 

#18 2004-12-12 03:52:01

jason
a chief (i started this place)
From: San Francisco
Registered: 2004-06-01
Posts: 8824
Website  Expertise

Re: MT comments on one are off

Well, the power law does apply to comment spam as well. Out of the 120ish MT installs here running comments, there is about 4 that account for 95% of the problems (and the top 2 account for 80% of those).

So the comments cutting off has been focused to the top 4.

The problem with mt-comments.cgi is that it's a non-threaded perl script running as CGI, running through an database abstraction layer and connecting to MySQL. It simply doesn't scale well under load.

Offline

 

#19 2004-12-12 06:07:46

mattymcg
Member
From: Melbourne, Australia
Registered: 2004-07-26
Posts: 170
Website  Expertise

Re: MT comments on one are off

Does the mt-close plugin reduce this traffic? It certainly has stopped my comment spam (although I am sure they are still trying to leave their crap on my blog).

Perhaps a server-wide cron job that ran mt-close on all MT installs might suit? Part of the TxD prerequisites: if you want to run MT, you need to close off old comments...

Offline

 

#20 2004-12-12 06:12:42

mattymcg
Member
From: Melbourne, Australia
Registered: 2004-07-26
Posts: 170
Website  Expertise

Re: MT comments on one are off

Just looked into this further and it would appear that just running mt-close wouldn't stop mt-comments.cgi from being executed. But doing a rebuild of the posts that you have closed comments for actually prevents the 'Leave a comment' form from being displayed, so this would work I think.

Offline

 

#21 2004-12-12 10:30:38

Echo
Member
From: Sweden
Registered: 2004-06-01
Posts: 169
Website  Expertise

Re: MT comments on one are off

Do spammers even bother about the form? I'm guessing they go straight for mt-comments.cgi.

Offline

 

#22 2004-12-12 11:12:46

Damelon
Member
From: Lyon, France
Registered: 2004-06-01
Posts: 880
Website  Expertise

Re: MT comments on one are off

I know this situation turns into a mess for Jason and Ryan pretty much every weekend now. Does the frequency of these assaults actually increase on Friday, Saturday, and Sunday? That is, are the spammers taking advantage of the reality that at many hosts the diligence of the support staff is reduced on those days?

Offline

 

#23 2004-12-12 13:23:10

reid
Pixel Wrangler
From: Atlanta, Georgia
Registered: 2004-06-01
Posts: 2126
Website  Expertise

Re: MT comments on one are off

First of all, I don't recall hearing about hosts cutting off MT until the past month or so. It seems there has been a real escalation that has brought us (and other hosts) to this point.

Secondly, I'd bet the reason you only have 4 out of ~120 MT users getting hammered is because those 4 have the highest Page Rank (he said, pointing the finger back at Google) ... likely a 6/10 or better.

Thirdly, if Six Apart can't at least emit a hint they are working on this, users have to take the hint from their host. If your app is creating out-of-control demand levels and causing you to regularly get shut down (as well as regularly degrade the performance of the server you are on for all who are on it), and there appears to be no new solution on the horizon, you need to find a new alternative.

Finally, those of you who are poo-poo-ing MT over this also need to realize that when the spammers are done with them (for whatever reason), they will move on to targeting whatever has become the new predominant app, via whatever flaws it might have. And it may be yours.

So removing MT from the equation does not solve the problem, it would just mute the current symptoms. Jason, is this the kind of attack that could be minimized by some server level mod_security, once we get the proper keyword/URL filters in place?

Last edited by reid (2004-12-12 13:24:14)


"Welcome to Hell. Here's your accordion."

Offline

 

#24 2004-12-12 15:47:39

reid
Pixel Wrangler
From: Atlanta, Georgia
Registered: 2004-06-01
Posts: 2126
Website  Expertise

Re: MT comments on one are off

Jason, I doubt it will make you feel any better, but I've expended 2300 words in your honor.


"Welcome to Hell. Here's your accordion."

Offline

 

#25 2004-12-12 16:59:38

daniel
23K
Registered: 2004-06-01
Posts: 353
Expertise

Re: MT comments on one are off

my biggest concern, which reid also touched on, is the lack of information from sixapart on this. i checked the news on their sites yesterday and there was no mention of the issue. that almost bothers me more than the issue.

Offline

 

#26 2004-12-12 17:09:53

jason
a chief (i started this place)
From: San Francisco
Registered: 2004-06-01
Posts: 8824
Website  Expertise

Re: MT comments on one are off

reid wrote:

Finally, those of you who are poo-poo-ing MT over this also need to realize that when the spammers are done with them (for whatever reason), they will move on to targeting whatever has become the new predominant app, via whatever flaws it might have. And it may be yours.

So removing MT from the equation does not solve the problem, it would just mute the current symptoms. Jason, is this the kind of attack that could be minimized by some server level mod_security, once we get the proper keyword/URL filters in place?

Yes, they're all high page ranking sites, and that's a good observation, because the worse is the highest ranked and it goes 8,7,6,6,6 for the top five people that get MT comment spam (seems that breaking into 6 is the key). It correlates perfectly.

I absolutely agree. I think the difference is that with some others app developers, one seems to be able to get ahold of them to ask what's up.

Yes to the mod_security, there has to be something all the way "at the top" and be akin to a NOQUEUE REJECT in email spam blocking. The "throughput" on a mod_security is 2000x that of hitting a mt-comment.cgi but then does also doesn't generate the load.

And excellent article Reid, it's definitely the best one I've read on it and bring together a lot of sources. It does leave out the sick-o's that make spamming profitable but getting rid of people who buy viagra from goat-love sites is well ... also not really doable.

Offline

 

#27 2004-12-12 17:10:36

jason
a chief (i started this place)
From: San Francisco
Registered: 2004-06-01
Posts: 8824
Website  Expertise

Re: MT comments on one are off

daniel wrote:

my biggest concern, which reid also touched on, is the lack of information from sixapart on this. i checked the news on their sites yesterday and there was no mention of the issue. that almost bothers me more than the issue.

Yeah, you should try grabbing them by AIM.

Offline

 

#28 2004-12-12 18:03:32

Eugene
Member
Registered: 2004-06-05
Posts: 835
Expertise

Re: MT comments on one are off

I thought that the reason that MT is worse than WP or TxP is that anytime anyone adds a comment it forces a rebuild of the entire site.

So the equivalent amount of comment spam on WP or other blogware does not exert the equivalent load on the server. While it is true that spam exists on all platforms, MT's design makes it that much worse for folks like jason and ryan.

:-(

Offline

 

#29 2004-12-12 18:10:13

Eugene
Member
Registered: 2004-06-05
Posts: 835
Expertise

Re: MT comments on one are off

jason wrote:


It does leave out the sick-o's that make spamming profitable but getting rid of people who buy viagra from goat-love sites is well ... also not really doable.

Someone needs to write mod_sucker for Apache.

Offline

 

#30 2004-12-12 19:19:24

Echo
Member
From: Sweden
Registered: 2004-06-01
Posts: 169
Website  Expertise

Re: MT comments on one are off

I do believe that I speak for all of us with this image:

Offline

 

#31 2004-12-12 19:29:05

compooter
hack
Registered: 2004-06-01
Posts: 923
Website  Expertise

Re: MT comments on one are off

Reid - a fantastic article.

reid wrote:

Finally, those of you who are poo-poo-ing MT over this also need to realize that when the spammers are done with them (for whatever reason), they will move on to targeting whatever has become the new predominant app, via whatever flaws it might have. And it may be yours.

Very true, but like you said, the open-source nature of the alternatives provide an advantage that Six Apart lacks.

I'm wondering if it'd be out of line to require MT users to rename mt-comments.cgi (and yes I do realize that this would not come close to solving the problem entirely). If we're going to use drastic measures such as shutting down the script, why not just require its renaming?

Offline

 

#32 2004-12-12 19:38:46

ryanschwartz
Joyeur Emeritus
From: Madison, Wisconsin
Registered: 2004-06-01
Posts: 1991
Website  Expertise

Re: MT comments on one are off

compooter wrote:

I'm wondering if it'd be out of line to require MT users to rename mt-comments.cgi (and yes I do realize that this would not come close to solving the problem entirely). If we're going to use drastic measures such as shutting down the script, why not just require its renaming?

Because it takes them about 0.03 extra seconds** for their robot to go, "aww geez, no mt-comments.cgi here, let's grab the comment script name from the comment link in the article, stick it into a variable, and use that instead"

Yes, it might help, but consider the time it would take the average person to rename the script, update their templates and rebuild their entire site. Just not worth it IMHO to slow them down a second or two.

**this is an illustrative number, not an actual one, but if I was writing a spambot I'd just set a variable, default it to mt-comments.cgi, and if that's not there, find it and update my variable.

Offline

 

#33 2004-12-12 19:45:46

compooter
hack
Registered: 2004-06-01
Posts: 923
Website  Expertise

Re: MT comments on one are off

gotcha

Offline

 

#34 2004-12-12 21:00:37

justin french
Joyeur Emeritus
From: Melbourne, Australia
Registered: 2004-06-01
Posts: 824
Website  Expertise

Re: MT comments on one are off

Can something be done in a htaccess or httpd.conf to stem the flow? I'm thinking something like "If my comments.cgi file is being requested more than X times per second, refuse service for a minute" or something like that...

Offline

 

#35 2004-12-12 21:08:10

reid
Pixel Wrangler
From: Atlanta, Georgia
Registered: 2004-06-01
Posts: 2126
Website  Expertise

Re: MT comments on one are off

Anil from Six Apart has just left a comment on my article with a bit of new info. There's apparently a new version of MT-Blacklist in the works, and an announcement may come soon.


"Welcome to Hell. Here's your accordion."

Offline

 

#36 2004-12-12 23:04:43

Al Sessions
General of the Generally Confused
From: The heart o' the hood
Registered: 2004-08-19
Posts: 387
Website  Expertise

Re: MT comments on one are off

I imagine he was referring to the recently released 2.02-alpha . It should be noted that while this update may help with comment spam it is primarily intended to fix a rather ugly bug.

Myself, outside of the server/hosting issues I just got tired of the labor involved with managing comment spam and since 9.32 of every 10 comments were spam, I decided to just yank them entirely. I expect this is somewhat more important to those who actually have readers.

Offline

 

#37 2004-12-13 00:28:44

justin french
Joyeur Emeritus
From: Melbourne, Australia
Registered: 2004-06-01
Posts: 824
Website  Expertise

Re: MT comments on one are off

reid wrote:

There's apparently a new version of MT-Blacklist in the works, and an announcement may come soon.

How noncommittal and non-informative of them :)

Offline

 

#38 2004-12-13 02:47:25

dubh
Member
From: Wellington, New Zealand
Registered: 2004-06-18
Posts: 58
Website  Expertise

Re: MT comments on one are off

I guess I'm wondering when I should get off MT, now.

I changed the name of mt-comments.cgi last week. It's taken them less than that amount of time to twig to it... and now the renamed cgi closely trails my RSS feed as the most requested page on my site. In the same time I've had approximately 1/100th the comments as hits on the comments cgi. There still are a few dumbass robots 404'ing the old mt-comments.cgi location, but these are fewer in number.

The only thing stopping an actual deluge of posted comment spam is mt-scode (a captcha plugin). Any view on the load this incurs?

I've already seen a comment spam infested weblog with this plugin installed, so I suppose it's only a matter of time until the spam comes back anyway.


Alan Macdougall | http://halfpie.net/

Offline

 

#39 2004-12-13 05:55:35

Al Sessions
General of the Generally Confused
From: The heart o' the hood
Registered: 2004-08-19
Posts: 387
Website  Expertise

Re: MT comments on one are off

justin french wrote:

Can something be done in a htaccess or httpd.conf to stem the flow? I'm thinking something like "If my comments.cgi file is being requested more than X times per second, refuse service for a minute" or something like that...

This. That. Is what I want.

I want comment and trackback spam stopped at a level above me. I'm a user, I have the technical chops of Deputy Dawg on a good day... I'm not a developer and I'm not a coder. I'm a user. I want tools that work and I feel entitled to them because I pay for hosting, donate to projects I care about and will test damn near anything. I do what I can.

Google isn't going to change. SixApart isn't going to change and the WordPress guys can't even publicly announce a bug fix. TXP may have been overlooked, so far, but it's only due to a lack of adoptation. I have no doubt that as soon as WP, TXP or anything else reaches the market penetration that MT enjoys it will be the exact same thing.

Jason and Ryan seem to be getting some numbers gathered and researching this more than any other host I've come across. That's a great start -- you guys know that if you could come up with some server-side voodoo to make this all go away it would be huge. Huge like Google. Huge like MT. Nobody else is addressing comment spam at a server level, they all want us to install the latest and greatest plugins or upgrade to the new (sometimes more expensive) release. That's not fixing it. That's not helping me, the clueless guy who wants comments from his mother to work. That's not helping the client I just sold on the power of weblogs (who suddenly is spending, or hiring someone to spend, hours a day managing a inherently unsound system).

Look for the magic bullet... it's there, and if you find it we WILL come. Boy will we come, in droves. Meanwhile, I'm firing up a text editor and deleting databases. It's reached the point where I can write markup by hand quicker than I can delete spam and manage my spam managing plugins. It's just not worth the effort anymore.

Sorry about the rant, but I have too much time invested in these tools to go down quietly.

Offline

 

#40 2004-12-13 08:06:12

jason
a chief (i started this place)
From: San Francisco
Registered: 2004-06-01
Posts: 8824
Website  Expertise

Re: MT comments on one are off

Al Sessions wrote:

I want comment and trackback spam stopped at a level above me.

Jason and Ryan seem to be getting some numbers gathered and researching this more than any other host I've come across. That's a great start -- you guys know that if you could come up with some server-side voodoo to make this all go away.

Yep, we will.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson