RSS and Web Feeds a Risk?
A followup whitepaper [PDF] to a
recent talk at the blackhat security conference has been released outlining the risks associated with web based feeds such as RSS and Atom. From the article: "Attackers could exploit the problem by setting up a malicious blog and enticing a user to subscribe to the RSS feed. More likely, however, they would add malicious JavaScript to the comments on a trusted blog, Auger said. "A lot of blogs will take user comments and stick them into their own RSS feeds," he said."
Seems more like a problem with allowing javascript in comments (a really dumb idea) than a problem with RSS.
Philosophy.
Not to be the jerk here, but it really shouldn't be that big of a news story that some people discussed the idea that it might not be the best security practice to allow unvalidated user input.
Nobody would think of performing no kind of checking on things submitted into a plain old text box, so why would it be safe just because it's now in the "synergetic web 2.0 blogosphere of community-driven empowerment through technology"
Oh well, still a moderately interesting article...
If I trust someone and let them have free access to my house, there's a chance one day they'll swipe every thing from it and load into a truck..
just because something is some kind of "new" technology does not mean any different..
use common sense and intelligence.
Timang tinggi tinggi
parang sudah asah
alang alang mandi
biar sampai basah
It turns out that Bloglines was notified in advance by SPI Dynamics about the problem, and took steps to fix the problem the same day. Nicely done by both parties!
Wouldn't RSS over XMPP be better.
Isn't it amusing I found this article by using /.'s own RSS fee!"$%&() ****NO CARRIER****
That's like allowing javascript in HTML email. Any sensible aggregator (and mail cient) disables all javascript by default.
Someone please reassure me that Vista's aggregator does so as well. In fact, can anyone even refer to an aggregator that parses and enables javascript? I can't begin to think of where to find one.
'Yes, firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
If I can remote execute code, I can remote execute malicious code. Nothing new please move along
The big issue on RSS security is Microsoft's integration of RSS into Vista. Given hackers' success targeting e-mail and browsers weaknesses, will Microsoft's implementation of RSS be better? Let's hope so. Netcraft wrote about this more than a year ago, but there's been very little discussion since. It's trivial to spoof and augment a feed. Rather than trying to target weaknesses in individual RSS readers, there's a single Microsoft implementation to test and attack. It's a game changer in terms of RSS' potential usefulness as a malware delivery channel.
forms (comment or otherwise) shouldn't trust input from users, javascript & html should be filtered out.
RSS feeds shouldn't trust input from other systems, javascript & html should be filtered out.
or to simplify, no program should trust input of any type (user input, data from files, data from databases) validate and filter it before using it. If it isn't a cross-script problem it's a buffer overflow problem.
RSS Security Slides
Isn't everything that allows for a not easily listed number of possible inputs/outputs (like a blog, as opposed to a "yes/no" question) possibly a security risk if you don't clamp down on what is done with those inputs/outputs? I like that people are discussing this sort of thing and hopefully encouraging other to prevent this, but once again the /. title makes it sound like all RSS feeds are a risk - when really, just the unsecured, unvalidated ones are.
"If I trust someone and let them have free access to my house, there's a chance one day they'll swipe every thing from it and load into a truck.."
Excuse me, Tracer. You can keep the underwear.
The technology behind web feeds such as RSS and Atom (if you can call an XML file a 'technology') is perfectly safe, it is merely the content of the feed itself which can cause problems.
No one can stop a malicious user from setting up their own feed containing dangerous feeds. However, for existing blogs and weblogs, the validation methods to prevent the input of code and script into comment fields has been around and known about for several years.
From the article:
They don't name names, but it does seem like a number of aggregators do support JavaScript. And when the day comes where someone develops a "Web 2.0 AJAX enabled blog", there will be pressure for more and more aggregators to support JavaScript (likely it will be an option that can be disabled, but who is going to do that if it means they cannot access certain features on certain blogs).
This is just one more reason I hate Javascript.
Mathematics is made of 50 percent formulas, 50 percent proofs, and 50 percent imagination.
blah blah feeds can contain HTML and JS OMG blah blah it's moronic to allow arbitrary html/js in comments blah blah IE might have an exploitable JS engine blah blah.
In short, RSS feeds from broken sites are as much a problem as the broken sites themselves.
Also, in what sense is "JavaScript is a scripting language that experts say is increasingly causing security concerns."? It's been around for 11 years, and it seems to be far less of an issue than Yet Another 0-day Remote Exploit In MS Software or even IE/FF flaws.
It can't be that much of a risk. I haven't heard of a single instance of this happening in the entire time that RSS has been available...
God Be Gone
Never let input go unchecked. If you do, you are already screwed.
The point of feeds is to get just the content without all the crap (including ads and CSS). If more people would make their feeds right, this wouldn't really be a problem. There's no point in using more than links via the "a" element, images via the "img" element in a feed, separating paragraphs via the "p" element, and the occasional semantic elements like "strong", "em", "ins", and "del".
'Yes, firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
It doesn't matter whether we're looking at published blog entries or comments, anything that is fed via RSS or Atom can move JavaScript (for good or bad) - and what the article makes clear is that the problem lies in the news reader programs themselves. They simply don't apply the same level of security you might expect from Mozilla (Firefox), Safari, Opera, Internet Explorer, etc...
;-)
The bottom line here is that RSS/Atom reader programs need to apply similar security checks to those performed by popular secure web browsers.
RTFA
Zen tips: Pay attention. Don't take it personally. Believe nothing.
I can write virii in C++! It's a C++ vulnerability!
Seriously, this is dumb. It is not a problem with RSS/Atom, it is a problem with RSS/Atom viewers that allow JavaScript code to be executed!
Within the context of a web-based viewer this could be a problem, but then again it's no more of a problem than if you go to a questionable site with bad JavaScript. For a browser-based viewer it's simply a matter of the devs remembering to turn off JavaScript support for RSS/Atom feeds.
And in desktop-based viewers... I mean really, who would be stupid enough to even consider implementing JavaScript in one. And if it only does because the programmer took the lazy route and is using a WebControl in the background, well they might want to consider a different method that will actually give them some measure of CONTROL.
Speaking of poorly coded, I wonder if we'll see IE exploits arising from embedded ActiveX controls in RSS feeds, those would cause far more damage than while (1) { window.print(); window.alert("LOL INTERNET"); }.
You were awesome in Braveheart.
http://www.google.com/search?q=define%3Avirii&ie=u tf-8&oe=utf-8&rls=org.mozilla:en-US:official&hl=en -US&client=firefox-a
NEWSFLASH: Hackers MAY set up websites and services to lure victims! Film at 11.
Luck favors the prepared, darling.
This is the case where I subscribe to the school of thought that the RSS description element should have no markup. The original purpose of RSS was not to distribute whole articles but only describe them and provide a link.
...but why would anyone *want* to include JavaScript in an RSS feed? Other than showing ads or annoying viewers, what possible purpose would it serve?
And, as someone above suggested, what the hell is a "Web 2.0" RSS feed? Even if I used AJAX to make a nice-n-pretty UI for my blog, that still wouldn't explain why I would use JavaScript for my RSS feed.
barack to the future?
... how many RSS readers are actually going to heed the advice and include a function to strip the tag (or any other tags that could potentially be harmful) and enable it by default? Given the number of RSS readers out there (both web and desktop based), I don't see this happening en masse anytime soon. Pity though... obviously it's a risk that can be avoided.
-- Stu
/. ID under 2,000. I feel old now.
Blogger doesn't (directly) support comment feeds. If you're interested in setting this up on your Blogspot blog (so you can, for example, get truly recent comments), check out this bloghacking wiki.
I can't vouch for the security of these methods, though.
-Thetan.
This paper was so worth it, if only for inventing the term "Malicious blog". I can only imagine an army of teenage girls cracking their ex-boyfriend's computer by embedding exploits into their melodramatic poetry.
Mood: h4xx0r
It's wabbit season! Oh my god! Everything of value is vulnerable! Air and water are a threat! Did you hear? Speach, human voice, could contain mistruths and even outright lies! If you take candy from a stranger, you could end up molested and dead! No S**t Sherlock. I'm sorry, but did somebody release some technology in the last 30 years that wasn't vulnerable to malicious use? And to say that people have to take idiotic steps to make themselves vulnerable is kinda a red flag, don't you think? Javascript doesn't steal your personal information, hackers steal your personal information. Hmmm... that sounds sorta familiar... where's my bulletproof firewall?
7h3$3 4r3n'7 7h3 Ðr01Ð$ ¥0 4r3 £00|{1n9 f0r. M0v3 4£0n9. --OB1
One should copy-paste comment blocks from RSS directly into a webpage, without either validating content or striping tags. Otherwise, at least it's highly likely that the page style will get broken.
That's hardly news.
"Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
RSStool will filter such crap with the next release. http://rsstool.berlios.de/
World to end unless you buy stuff from the authors
Just predicting next week's USA Today exclusive.
Reduce, reuse, cycle
The problem is not whether JavaScript should be accepted or not, but rather how can we improve the browsers and the feed readers. The readers for the first instance should not be parsing JavaScript at all, problem solved there. But even more important; browsers should not be able to parse malicious JS code. If only the browsers and the client side would be mended not not to parse evil JavaScript these kind of news would never appear again. :-)
I understand why you chose to post anonymous not to mention "Off Topic". :p
The problem with malware and other stuff is that they trick the user into doing something stupid, ie running an executable attachment or visiting some malicious web with IE. Any experienced user wouldn't do that.
Suscribing to a RSS feed isn't what the average user do, and I don't think you'd do it without realizing. Most people won't even have a RSS reader installed.
But wait until Vista have mass adoption. It'll have RSS everywhere and average users will start to use it. Then there will be a problem.
$ whoami
That's like allowing javascript in HTML email.
It's like allowing Javascript period. Web sites you intend to visit can be just as malicious as email, RSS feeds, user input, or Web sites you don't intend to visit. You shouldn't be automatically executing code you get off the Net at all. Javascript was a bad idea from the start. Why do we still tolerate it?
Indeed there is no point, but if the client software supports it then adding programatically rich content is a risk that can be exploited. Even if sensible feed programs strip risky content, someone can easily code a feed that feeds dangerous data or a popular site can be compromised.
Bottom line is RSS readers must be as tight as tight web browsers (that is preferably not based on IE).
May contain traces of nut.
Made from the freshest electrons.
A thought just occured to me- if I was running a site dealing with, say, Google Maps, I might have reason to include JavaScripts, but only if I wanted to "broadcast" the maps via XML. But would this feed work with FeedGator, Netvibes, etc, etc? In other words, even if I was to setup my XML in this manner, would any of my readers be able to benefit from it?
Instinct says no.
barack to the future?
This is about more then just the users who subscribe to RSS feeds through readers. It affects a lot more. I wrote a paper on this last year because Yahoo was vulnerable to letting bad feeds be added to its' website, which I bet you a lot more people will click a button saying "add this feed to My Yahoo!"
It is important to get the message out to all levels of people who plan on doing anything with RSS feeds that they can not be trusted at all and must be sanitized fully. Especially if you are going to allow a user to customize your site and add feeds to it, cause now whatever malicious code get's in those feeds it's running as you.
http://seclists.org/bugtraq/2005/Oct/0205.html
Cheers,
Jeremy
alljer at gmail.com
People gave me a lot of flack a while back, whan I objected to Microsoft wanting to incorporate RSS links into Vista. At the time, I claimed that Microsoft has a bad habit of linking unrelated things into the OS at a low level, resulting in what would otherwise be minor anoyances turning into system-wide disasters.
Oh, my, now it turns out that RSS feeds have a potential vulnerability. What a surprise! Imagine now if RSS inherently had links deep within your OS.
Applications should be separated from the OS and other applications on a Need To Know basis, like in Unix/Linux, not mashed together because some marketing droid figures it'd make a good selling point to the clueless masses.
Microsoft Windows: Insecure By Design.
(\soapbox)
"My country, right or wrong; if right, to be kept right; and if wrong, to be set right." --Senator Carl Schurz (1872)
OK, here's a question: What *exactly* is malicious javascript? Javascript has no access to your local filesystem, so, aside from displaying something nasty or redirecting the user to some different url, or something like that, what is "malicious javascript" capable of??
Cheers
Matt
An aggregator that parses HTML with mshtml.dll would be the worst security hole imaginable. libkhtml.so or libmozjs.so/dll (? I don't remember if that contains all of Gecko) might be an improvement, but parsing HTML in a feed (other than the markup I mentioned) is stupid anyhow.
'Yes, firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
How the hell can Javascript concerns increase?! Javascript was a bad idea from day 1 and I thought security concerns were at pretty much maximum possible (i.e. the only sane thing to do with Javascript was to disable it) for many years.
If anything, it looks like Javascript security concerns are now decreasing, since more people seem to be re-enabling it and accepting the risks, because of the AJAX fad.
Or maybe I missed the whole point. Maybe they're saying the concern is increasing, because the fad has people starting to turn it on again? Either way, it just seems weird. Saying Javascript security concerns are increasing, is something like saying that people are starting to get worried about the health effects of nearby nuclear weapon detonations.
And then there's this:
*cough* People are still using an application that has been well-known for over a decade now, to be unsafe for use on the Internet, and now you're blaming Javascript and RSS?! Talk about mis-diagnosis! "Yeah, we're finding that people who live in grass shacks near the nuclear test site, are having health problems. This raises questions about grass shacks."