Regarding why it has cross-site in the name, Jeremiah Grossman has a good article (http://jeremiahgrossman.blogspot.com/2006/07/origins-of-cross-site-scripting-xss.html) on that. Snipit below:
<blockquote> What was soon discovered was that a malicious website could load another website into an adjacent frame or window, then use JavaScript to read into it. One website could cross a boundry and script into another page. Pull data from forms, re-write the page, etc. Hence the name cross-site scripting (CSS). Notice the use of "CSS". Netscape fired back with the "same-origin policy", designed to prevent such behavior. And the browser hackers took this as a challenge and began finding what seems like hundreds of ways to circumvent the security.
</blockquote>
Different from what we describe as XSS today, but that appears to be the origin.
What a bunch of idiots you are.
I also asked on http://security.stackexchange.com/ (http://security.stackexchange.com/) and got a serious answer:
If to learn a thing or two I have to put up with dickheads like you then I'm out of here. That's not the kind of community I want to be in.
"The basic idea is that in a vulnerable page, you can include your own javascript (or other) code, which then fetches other code from another site - usually a site that you control, of course. This is why it is called "cross-site" - the script "crosses" sites from your site to the compromised site."
"The basic idea is that in a vulnerable page, you can include your own javascript (or other) code, which then fetches other code from another site - usually a site that you control, of course. This is why it is called "cross-site" - the script "crosses" sites from your site to the compromised site."
Sure his wording is a bit off, but was that so hard? We don't appreciate answering questions that 4 seconds on google could answer for people.
But that doesn't matter. You just proved that, as a community, don't deserve my respect.
In fact, that explanation is JUST PLAIN WRONG. I had already read that page and realized that it provided the wrong answer. For at least two reasons:
1) <script>alert('XSS')</script> is already a XSS attack and shouldn't be called "cross-site" according to that explanation;
2) experts claim that stored XSS attacks shouldn't be called "cross site". Why?
All that led me to ask my question. I simply chose the wrong forum. My bad :(
Who's the lazy one now?
But that doesn't matter. You just proved that, as a community, don't deserve my respect.