« Behind the Redesign | Al Shaw's Blog | Anonymous Recommendation »

Canning Spam


You may have noticed a few weekends ago some spammers at Cafe were putting up entries which were redirecting you to their sites as soon as you landed on certain TPM pages. This kind of attack (called cross-site scripting) uses javascript to take command of the browser for malicious ends. To combat that, while we were developing a fix, we disabled self-registration and asked users to email us if they wanted to start an account. That way we could make sure bots weren't signing up and injecting harmful code into Cafe pages.

Last night we deployed a security fix that will prevent these kind of attacks by stripping out certain HTML tags from entries, such as the <script> tag. We're also stripping out the <style> tag, which can alter the legibility and structure of the site. These changes won't affect the majority of users, but please be advised if certain tags "disappear" from your entries on save, this is what is going on.

Another note -- we have elected to whitelist tags that allow embedding videos. Though this allows a high level of freedom (and a certain amount of risk), we felt that sharing videos was an integral part of TPMCafe discussion. If these tags are abused, however, we may have to reconsider.

Please let me know if you see anything funky by emailing me at al@ this domain. Thanks.


18 Comments

| Leave a comment
user-pic

Al rocks the house as usual. I am going to nickname you The Fixer. Say, would you mind heading down to DC and setting the asshats in Congress strainght on the health care reform bill? Thanks in advance.

user-pic

Thank you so much for making yourself, and therefore TPM available.

It is much appreciated.

user-pic

O wise shepherd of html, we are always grateful. Thanks again.

user-pic

Canned spam?

*sigh*

I love it when you're punny.

user-pic

Al, you might be able to work with the Simple Machines Mod: Aeva (YouTube/video/audio auto-embedder). It works well in the Simple Machines forum, needing nothing more than a URL drop, no code to embed.

BTW, I'll miss the style-tag stripping, here and there, if it includes inline-style, (might want to rethink if it does; it's really functional for on-the-fly image resizing), but I'll survive without it.

user-pic

Thanks for the link, Pseudo. I'll check it out. Unfortunately we are blocking the style attribute, but you can still resize your images with the height and width attributes.

user-pic

Thanks, Al.

user-pic



Good job Al . .

Although I have had no problemos here at the Cafe with *cross-site scripting* what with my Firefox browser and "NoScrpt" application.

~OGD~

user-pic

Hi Al,

Thanks for protecting the site and keeping us informated.

I really appreciate the freedom we have here at TPM. If you can find a 'whackjob' blocker for the 'birthers' and other random 'freemen/alien takeover' type users... I wouldn't complain.

user-pic

word

user-pic

Two OT things, Al. I just downloaded IE8 and found that there are some sites that are not compatible with it - don't know why. Apparently TPM is one of those sites. IE8 has "compatibility view" feature that seems to correct problems, but thought you might like to know anyway.

Second. Have you ever thought about having links open in a separate window? It would make navigating the site much easier, I believe.

Thanks for staying on top of things.

user-pic

Hmm, I tested with IE8, and it looks fine. Can you send me a screenshot at al@ so I can see what you're seeing?

user-pic

I use Vista 64 and IE8 and don't have any problems.

user-pic

Have you ever thought about having links open in a separate window?

FDRdog, Have you tried right clicking on a link? That should open the context menu, where there should then be a choice to open that link in a new tab or a new window. (Although I assume you meant new tab, rather than new window.)

I'm on Vista 32 and just tried IE 8 and it's fine.

user-pic

Thanks for the right click tip, Seashell. I did not know you could do that.

I'm on Vista 32, too. What ever the problem is, it clears up if I make sure compatibility view is on.

user-pic

I emailed a screen shot. I don't have the same problem with compatibility view, though.

user-pic

I emailed a screen shot. I don't have the same problem with compatibility view, though.

user-pic

Al,

I've written in to help@talkingpointsmemo dot com three times now with no response. I'm hoping that this succeeds in getting someone's attention.

I'm trying to start blogging but the myTPM interface will not allow me to do so. I cannot follow another blogger, either. I'll click "Blog Now" and no text entry window appears, just an empty listing of blog entries.

I've tried using both IE and Firefox. Can you help?

Leave a comment

Al Shaw

user-pic

Following: 73
Followers: 43

Posts
Comments & Recommends


  • Location NYC
  • Party Dem

Favorites

  • Favorite Blogs TPM, Daring Fireball, Subtraction, Kottke, Hivelogic, Coudal, TechPresident, Ezra Klein, Glenn Greenwald, BAGnewsNotes, SpeakUp, Signal vs. Noise

Bio

Designer/Developer at TPM. I read news and write code.

All Reader Posts
How to use myTPM

Advertise Liberally
Share
Close Social Web Email

"To" Email Address

Your Name

Your Email Address