Domain: cgisecurity.com
Stories and comments across the archive that link to cgisecurity.com.
Comments · 196
-
No relevant results for "around".
Google around.
around didn't provide relevant results.
But with the literal-minded housekeeper costume off, forge referer and spoof referer still don't. This page is from 2006, and this page likewise explains a flaw that has since been fixed. This page claims that it's possible to forge a referer in the visitor's browser using redirection, but only from a domain that the attacker controls. This result claims that the only way is to get the user to install a plug-in: "If you want to redirect a visitor to another website and set their browser's referer to any value you desire, you'll need to develop a web browser-plugin or some other type of application that runs on their computer. Otherwise, you cannot set the referer on the visitor's browser." A bunch of results were links to such plug-ins, but the viewer is likely to decline the plug-in installation. What am I missing?
-
Cross-site Scripting FAQ
Cross-site Scripting FAQ http://www.cgisecurity.com/xss-faq.html
-
What is your computer setup?
KM: You send me yours along with the IP address, and I'll tell you mine. Good try at information reconnaissance.
Oh please. The poor fanboy just wanted to have the same setup you are using. From your visit to Atlanta in 2008:
"In his luggage, they found a MacBook Pro, a Dell XPS M1210 laptop, an Asus 900 mini-laptop, three or four hard drives, numerous USB storage devices, some Bluetooth dongles, three iPhones, and four Nokia cell phones (with different SIM cards for different countries).
They also found a lock-picking kit and an HID proximity card spoofer that can be used to snag data stored on physical access cards by swiping it in front of them. The data can then be used to enter locked doors without having to make a forged access card. Mitnick says he used the device in a demonstration about security in his speech in Bogota, but that the customs agents' eyes lit up when they saw it, thinking it was a credit card reader.
(Source: Kevin Mitnick Detained in Atlanta for having computer equipment on flight)
-
The XSS FAQ
-
The Cross-site Scripting (XSS) FAQ
The XSS FAQ
http://www.cgisecurity.com/xss-faq.html -
The Cross-site Scripting FAQ and Resources
XSS FAQ
http://www.cgisecurity.com/xss-faq.html
WASC Threat Classification - Cross-site Scripting
http://projects.webappsec.org/Cross-Site+Scripting -
Re:maybe someone would leak how they did it
Would the leak about how the leak happened be hosted on wikileaks, or do we need a WikiLeaksLeaks?
They would host it.
They hosted a leak of their own donor list.
-
Re:What kept them?
Lynx is pretty secure
Even Lynx has had security issues. While searching for an example, I found this, which is even better
;-) -
Sounds like the cause could be
-
More info
-
Re:XSS (Cross-Site Scripting) definition?
Note the difference between your definition and mine. My definition (shared by everyone else) involves three computers:
Actually, that's not shared by quite everyone else. I just followed the link in another post, to the cgisecurity.com site's FAQ. I should perhaps remark that I was rather embarrassed to read some of what's there. But note that it's from a company that is clearly pushing itself as an expert on web security.
If you read the "What is Cross Site Scripting?" section, you'll probably have a hard time pointing to anything that mentions three or more computers. I don't read that anywhere in the paragraph. Later on, there are a couple of sketchy example that would probably involve three machines, but even then, it's not clear that that's a critical detail. What does seem clear is that they aren't presenting a 3-machine setup as a significant part of what they're defining.
Also, the string "sandbox" doesn't occur in their FAQ. In fact, not even "san" was found by firefox. So their definition doesn't require 3 machines or a sandbox.
Actually, their "definition" is rather remarkable for its vagueness. I suspect that this page was written (or more likely, re-written) by marketers and/or tech writers who don't understand the topic, and probably don't care to. But that's beside the point, because this is the FAQ on "Cross Site Scripting" [their capitalization] of a company whose business is web security. What they have on that page is what they present to visitors as how they understand and define the topic.
This is yet another entry in my list of incompatible definitions of the phrase at hand. I think that the phrase has been co-opted by the marketers, sorta like "virus" and "hacker" and other scary-sounding technical terms. So, while we can talk about it all we like, chances are that the folks reading slashdot all have their own definitions, most of which are as confused as this one. And we'd have a lot of trouble finding two definitions that are even close to the same, even from people presenting themselves as web-security experts.
It reminds me of Bertrand Russell's famous description of mathematics as a subject in which "we never know what we're talking about nor whether what we're saying is true". That's a fun quote to bring up when people are discussing whether Computer Science is a branch of mathematics. If it really were, then we CS types should be happy to embrace (and extend) Russell's characterization.
-
The XSS FAQ
The Cross-site Scripting (XSS) FAQ http://www.cgisecurity.com/xss-faq.html -
We have no history
We repeat the same lessons every generation, don't we?
We have our own terrible business languages, our own non-relational databases*, our own stupid development fads, our own overwrought RPC protocol, our own profoundly ignorant ways to "disable" things for the user, our own wasteful incompatibilities, our own locked-down propretiary platforms, and the same casual disregard for proper security.
This industry has no sense of its own history. Instead of benefiting from the innumerable hours past programmers spent solving universal problems, we ignore and reject their work, and with only a few exceptions, we spend countless hours solving solved problems.
By the time we work through the mess, another generation of programmers will have rejected our work, and will be well on the way to repeating the cycle. It's depressing as hell.
(Come to think of it, I don't think I've ever written a post that offended so many software developers simultaneously.)
* RDBMs systems didn't come first; people started using them over navigational databases for good reasons that still apply today.
-
The XSS FAQ
The Cross-site Scripting FAQ http://www.cgisecurity.com/xss-faq.html
-
Re:Well
Do you have a copy of an "infected" php file we can look at ? Or a link that describes the same issue happening to others ? Because it seems more likely that it was due to third party banners or a XSS attack. I assume you are on a shared server, so the reinstall was probably either a clean virtual machine image or your chrooted environment was wiped and replaced. Who else on the same machine had these issues ? You realise that a lot of php apps are attacked by cracking the apps admin passwords not by rooting the server. And if your pc got 0wned then any saved passwords on it might have been sent off to a remote site as well.
Mind you, your server management guys probably made some cash out of you. And you put the same software back on straight away .... cool. Either way, you have not demonstrated that linux had anything to do with this. PHP maybe, the php app itself more likely. Are you blaming windows for the acrobat issue ? -
Re:Hanlon's Razor
Option 2 is not going to work:
Can CSRF be prevented by implementing referrer checking?
No. Referer headers can be spoofed using XMLHTTP and by using flash as demonstrated by Amit Klein and rapid7 and therefore cannot be trusted.
(From The Cross-Site Request Forgery (CSRF/XSRF) FAQ.)
On an unrelated note: whenever you check referrers, please allow for missing referrer headers so that I don't need to make my browser lie to you.
-
Re:Wouldn't a referer check also counter this?
The referrer can be spoofed using javascript (XMLHttpRequest), and thus cannot be depended on even with trusted browsers.
-
The Cross-site request forgery FAQ
-
Additional Information
This is something a lot of us in the industry have been writing about. Here's my rant from last October Browser Security: I Want A Website Active Content Policy File Standard!
http://www.cgisecurity.com/2007/11/08
Jeremiah Grossman's thoughts
http://jeremiahgrossman.blogspot.com/2008/06/site-security-policy-open-for-comments.html -
Additional Information
-
The Cross-site Scripting FAQ
-
SQL Injection and Blind SQL Injection Info
-
SQL Injection and Blind SQL Injection Info
-
SQL Injection and Blind SQL Injection Info
-
Re:URL referrer
In the context I'm talking about, the browser has no control over the referrer.
Review TFA and read the pretty-good Wikipedia article about Cross-Site Request Forgery.
Then imagine a Javascript program, uploaded to a victim's browser by your hypothetical shadyhackerswebsite. (The victim's looking for instructions for how to cut down the size of his window shades and got fooled by a seeded Google response, let's say.)
The Javascript takes advantage of the breach in document security which is the subject of TFA: if the brower the Javascript is running in has another window or tab open, and that tab (for instance) is authenticated into a trusted web-form-based site (like online banking), the Javascript can take advantage of the authenticated state of the other session to submit a form URL to the target website.
So, you say that referrer checking should safeguard that, because the white-hat browser session (doing real e-banking business, for instance) would have a valid referrer URL in the form submission but the black-hat Javascript can't.
This latter assertion (the Javascript can't synthesize the referrer) is wrong. Read http://www.cgisecurity.com/lib/XmlHTTPRequest.sht
m l to see how to spoof a referrer string in a Javascript-based GET or POST.Now, are you arguing that maybe the browser's HTTP interface should be intervening by validating any outbound referrer? That isn't happening. I don't know the mechanics of Javascript implementations in browsers, particularly in reference to the HTTP interface of the browser engine itself, but I'm guessing that they're independent and the browser has very little supervisory control over what Javascript is doing with the XmlHTTPRequest method. In other words, the browser will play by the referrer rules, but Javascript isn't obligated to.
By the way, to some extent I'm simply speculating, but the experts have already spoken. Read http://www.cgisecurity.com/articles/csrf-faq.shtm
l , and note well the following question/answer:Can CSRF be prevented by implementing referrer checking?
No. Referer headers can be spoofed using XMLHTTP and by using flash as demonstrated by Amit Klein and rapid7 and therefore cannot be trusted.And yes, it's a bug. The real bug is the stupid conceit that HTTP can be stateful, first and foremost. You can hack at it and create state with cookies and the like, but if browser software can send valid information then crafted mobile malware can send invalid information and break state and get away with it.
-
Re:URL referrer
In the context I'm talking about, the browser has no control over the referrer.
Review TFA and read the pretty-good Wikipedia article about Cross-Site Request Forgery.
Then imagine a Javascript program, uploaded to a victim's browser by your hypothetical shadyhackerswebsite. (The victim's looking for instructions for how to cut down the size of his window shades and got fooled by a seeded Google response, let's say.)
The Javascript takes advantage of the breach in document security which is the subject of TFA: if the brower the Javascript is running in has another window or tab open, and that tab (for instance) is authenticated into a trusted web-form-based site (like online banking), the Javascript can take advantage of the authenticated state of the other session to submit a form URL to the target website.
So, you say that referrer checking should safeguard that, because the white-hat browser session (doing real e-banking business, for instance) would have a valid referrer URL in the form submission but the black-hat Javascript can't.
This latter assertion (the Javascript can't synthesize the referrer) is wrong. Read http://www.cgisecurity.com/lib/XmlHTTPRequest.sht
m l to see how to spoof a referrer string in a Javascript-based GET or POST.Now, are you arguing that maybe the browser's HTTP interface should be intervening by validating any outbound referrer? That isn't happening. I don't know the mechanics of Javascript implementations in browsers, particularly in reference to the HTTP interface of the browser engine itself, but I'm guessing that they're independent and the browser has very little supervisory control over what Javascript is doing with the XmlHTTPRequest method. In other words, the browser will play by the referrer rules, but Javascript isn't obligated to.
By the way, to some extent I'm simply speculating, but the experts have already spoken. Read http://www.cgisecurity.com/articles/csrf-faq.shtm
l , and note well the following question/answer:Can CSRF be prevented by implementing referrer checking?
No. Referer headers can be spoofed using XMLHTTP and by using flash as demonstrated by Amit Klein and rapid7 and therefore cannot be trusted.And yes, it's a bug. The real bug is the stupid conceit that HTTP can be stateful, first and foremost. You can hack at it and create state with cookies and the like, but if browser software can send valid information then crafted mobile malware can send invalid information and break state and get away with it.
-
The Cross-site Request Forgery FAQ
-
The Cross Site Scripting FAQ
-
Ajax security
-
CSRF and XSS FAQ's
-
CSRF and XSS FAQ's
-
Don't forget Cross site request forgery
The Cross-site Request Forgery FAQ http://www.cgisecurity.com/articles/csrf-faq.shtm
l -
The CSRF and XSS FAQ
-
The CSRF and XSS FAQ
-
RSS and Atom Security
Paper: Feed Injection In Web 2.0: Hacking RSS and Atom Feed Implementations, Robert Auger 2006
Blackhat Powerpoint Slides: Zero Day Subscriptions: Using RSS and Atom Feeds As Attack Delivery Systems (Power Point)
Additional Feed Security Documentation: http://www.cgisecurity.com/rss/ -
RSS and Atom Security
Paper: Feed Injection In Web 2.0: Hacking RSS and Atom Feed Implementations, Robert Auger 2006
Blackhat Powerpoint Slides: Zero Day Subscriptions: Using RSS and Atom Feeds As Attack Delivery Systems (Power Point)
Additional Feed Security Documentation: http://www.cgisecurity.com/rss/ -
RSS and Atom Security
Paper: Feed Injection In Web 2.0: Hacking RSS and Atom Feed Implementations, Robert Auger 2006
Blackhat Powerpoint Slides: Zero Day Subscriptions: Using RSS and Atom Feeds As Attack Delivery Systems (Power Point)
Additional Feed Security Documentation: http://www.cgisecurity.com/rss/ -
Google is plenty vulnerable already
-
RSS and Atom Feed Security Links
Paper: Feed Injection In Web 2.0: Hacking RSS and Atom Feed Implementations, Robert Auger 2006
Blackhat Powerpoint Slides: Zero Day Subscriptions: Using RSS and Atom Feeds As Attack Delivery Systems (Power Point)
Additional Feed Security Documentation: http://www.cgisecurity.com/rss/ -
RSS and Atom Feed Security Links
Paper: Feed Injection In Web 2.0: Hacking RSS and Atom Feed Implementations, Robert Auger 2006
Blackhat Powerpoint Slides: Zero Day Subscriptions: Using RSS and Atom Feeds As Attack Delivery Systems (Power Point)
Additional Feed Security Documentation: http://www.cgisecurity.com/rss/ -
RSS and Atom Feed Security Links
Paper: Feed Injection In Web 2.0: Hacking RSS and Atom Feed Implementations, Robert Auger 2006
Blackhat Powerpoint Slides: Zero Day Subscriptions: Using RSS and Atom Feeds As Attack Delivery Systems (Power Point)
Additional Feed Security Documentation: http://www.cgisecurity.com/rss/ -
The Cross Site Scripting FAQ
-
Re:Ugh
What do you think the "Scripting" in "Cross Site Scripting" refers to? It refers to client-side javascript. Please read some Bugtraq, or at least this FAQ or the Wikipedia article. (The Wikipedia article is the easiest read. In particular, the section on types of XSS problems is edifying.) Your example is a straightforward input validation bug in the browser, and it doesn't involve any scripting at all, cross-site or not, and therefore is not an XSS anything. It's just a malicious input that exploits a browser bug.
In stark contrast with an XSS flaw, your example is not the site's fault, and there's very little that realsite.com can do about it. A smart site that uses a whitelist approach to user-posted URLs might refuse to let a user post such a link, but it's squarely the browser's fault for mishandling a faulty input, not the site's fault for having the link. The smart site refusing to post funky links is merely doing a service to all the stupid programmers out there. Faulty inputs happen all the time in the real world -- typos, human errors, the occasional corrupt file -- and any browser that doesn't say "Whoa! What the heck am I supposed to do with that?" is a buggy browser.
(Sadly, when it comes to malformed HTML, the "buggy" adjective applies to AFAIK all browsers today, including the lowly Lynx. Google for "HTML fuzz" if you're curious. Some hold up better than others, though, and IE is by far the worst of the lot. What's worse, when it comes to malformed URLs, IE itself has historically been a disaster, with about 2-3 times the URL bugs as the Mozilla codebase, and scarily almost all non-browser software that registers third-party URL handlers either (a) can be exploited today, or else (b) has been exploited in the past and survived a brutal trial by fire. I'm thinking of AIM in particular for the latter.)
-
The Cross Site Scripting FAQ
-
Ajax Security
-
The slides can be found here
-
The Cross Site Scripting FAQ
-
What the hell is Cross Site Scripting?Feeling a bit lost? No damn wonder.
After reading the linked article, you probably don't know what XSS is unless you knew going in. Here's a link to a FAQ on XSS. http://www.cgisecurity.com/articles/xss-faq.shtml
. As for the article. My impression is that it is not very well written. I don't know enough about XSS to be sure, but for the most part I don't think it is a very accurate assessment. It appears to me that XSS attacks most certainly are a security issue and are by no means limited to Javascript.
-
The Cross Site Scripting Faq
Once again if you're curious what XSS is check out
The Cross Site Scripting FAQ -
User Content
As buzzwordy as Web 2.0 is, end-user content is rapidly becoming the majority of the visible end-user internet experience (e.g. Digg, MySpace, Facebook, etc.) With thousands/millions of users posting content, XSS filters start to become an arms race against the latest techniques. With Internet Explorer even rendering code with as valid code. Even when filters are put into place, all it takes is one XSS virus to take down an entire website.
Even disabling Javascript content all together in websites, with user content, other methods can be used to steal cookies/sessions/user credentials. Flash attacks are becoming more and more common, and are near impossible to protect against. Users demand dynamic user-driven content, the companies comply, I'm just surprised this hasn't been more prevalent.
--Joel
Ajax Translator