Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 88 guests and 2 members online
EH-Net News Feeds
Latest Additions
 
Advertisement

You are here: Home arrow Forum arrow Ethical Hacking Discussions and Related Certificationsarrow Network Pen Testingarrow Cross site scripting uses
EH-Net
May 26, 2012, 08:35:25 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Advertise on EH-Net!! - Reasonable Rates, Highly Targeted Audience.
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Cross site scripting uses  (Read 2436 times)
0 Members and 2 Guests are viewing this topic.
exeglitch
Newbie
*
Offline Offline

Posts: 4


View Profile
« on: December 23, 2011, 09:02:07 AM »

Hello everyone,
recently I learned some web page hacking and it went well. The tutorial covered SQL injection, brute forcing, file inclue / upload vulnerabilities and other stuff. Everything went well, however I still have a huge question mark on cross-site scripting.

What can you do with this kind of vulnerability ?

I mean, I understand you could add javascript for example, but it runs only locally. I don't really see the point on adding javascript code that would run only on your computer. And if you manage to get someone else to click on a malicious link, wouldn't it be better to just craft a website exactly for your needs ? I'm sure there's a very obvious use but I can't see it.

Please enlight me =)
Logged
xXxKrisxXx
Sr. Member
****
Offline Offline

Posts: 491



View Profile
« Reply #1 on: December 23, 2011, 09:38:33 AM »

Hi Exeglitch,

Welcome to the site! I used to think the same thing when I was introduced to XSS. I would say it all depends on how much you can leverage it. XSS can be used to do a whole lot, such as redirecting a users browser to a malicious URL (to inject client-side attacks, steal cookies, etc) and a lot more.

A good tool that proves how wicked leveraging Javascript on a victims can be is The Browser Exploitation Framework from http://www.bindshell.net/tools/beef.html.

Below are a few helpful links that could help you understand it further:

Hacker Uses XSS & Google Streetview Data to Determine Physical Location

vbSEO - From XSS to Reverse PHP Shell

Browser Exploitation with BeEF

Web Hacking - XSS Part 1
Web Hacking - XSS Part 2
Logged

OSCP, OWSP, eCPPT
Jamie.R
Hero Member
*****
Offline Offline

Posts: 626



View Profile WWW
« Reply #2 on: December 23, 2011, 03:31:06 PM »

Good resources A good example of XSS recently I was working for client that had XSS on their site. When I told them they wanted me to prove it so I crafted a attack sent them a link and managed to steal their cookies from this I was able to log into the admin page and have access to all their customer details.
Logged

OSWP | eCPPT | HackingDojo Nidan
www.jamierougive.co.uk
unicityd
Jr. Member
**
Offline Offline

Posts: 90

Bored IT Manager, Crypto Nerd


View Profile
« Reply #3 on: December 23, 2011, 05:53:02 PM »

I've used XSS to implement Cross Site Request Forgery. 

-Steven
Logged

Security+, working on BS in IT (Dec. 2012)
exeglitch
Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #4 on: December 23, 2011, 06:01:39 PM »

Good resources A good example of XSS recently I was working for client that had XSS on their site. When I told them they wanted me to prove it so I crafted a attack sent them a link and managed to steal their cookies from this I was able to log into the admin page and have access to all their customer details.
The big question I have is this: If you could get them them to click on a link, couldn't you make them go on ANY page of your choice that would steal their cookies ?

I haven't read xXxKrisxXx's pages yet but I'll make sure to do, they seem very informative on the subject and will probably help me understand better.

Thank you.
Logged
lorddicranius
Sr. Member
****
Offline Offline

Posts: 396



View Profile WWW
« Reply #5 on: December 23, 2011, 06:26:30 PM »

Good resources A good example of XSS recently I was working for client that had XSS on their site. When I told them they wanted me to prove it so I crafted a attack sent them a link and managed to steal their cookies from this I was able to log into the admin page and have access to all their customer details.
The big question I have is this: If you could get them them to click on a link, couldn't you make them go on ANY page of your choice that would steal their cookies ?

It's more likely that a user will click on a URL containing a domain they're familiar with than a URL containing a random domain.  Say for example an attacker finds a XSS in Facebook.com.  An attacker could use a phishing attack and send an email containing a specially crafted URL using the Facebook.com domain.  Much more likely that a user would click on that than sending them a phishing email with a link to gimmeurcredentials.com.
Logged

cmathiso
Newbie
*
Offline Offline

Posts: 1


View Profile
« Reply #6 on: December 23, 2011, 06:34:23 PM »

Good resources A good example of XSS recently I was working for client that had XSS on their site. When I told them they wanted me to prove it so I crafted a attack sent them a link and managed to steal their cookies from this I was able to log into the admin page and have access to all their customer details.
The big question I have is this: If you could get them them to click on a link, couldn't you make them go on ANY page of your choice that would steal their cookies ?

I haven't read xXxKrisxXx's pages yet but I'll make sure to do, they seem very informative on the subject and will probably help me understand better.

Thank you.

A large reason you might want to use a site with XSS instead of pointing someone to another malicious site pertains to trust. In other words, someone will be more likely to click on a link in an email that points to "trusted-site.com" that goes to a site that is vulnerable to reflective or persistent XSS versus clicking on "evil-site.com"

** It looks like lorddicranius beat me to the punch
« Last Edit: December 23, 2011, 06:36:16 PM by cmathiso » Logged
MaXe
Hero Member
*****
Offline Offline

Posts: 507


I've just upgraded myself to a cyborg muahahaa!!1


View Profile WWW
« Reply #7 on: December 27, 2011, 11:00:37 AM »

It should also be noted, that unless there's a bug in the webbrowser, it is not possible to steal cookies across websites. For example microsoft.com won't be able to read the cookies from ethicalhacker.net, even though they're stored on the same computer. Otherwise, it would be very easy to hack / steal session cookies  Smiley
Logged

I'm an InterN0T'er
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.134 seconds with 21 queries.
 

gk_static-ad_feb2012.jpg
Global Knowledge: Build Security Skills to Protect & Defend

els_130x200fixed2.gif
eLearnSecurity Student Course Now Live!
5% Off with Code
ELS-EH-5

SANS Deals 4 EH-Netters
$150 OFF Any SANS Course in Any Format!
Coupon Code: EHN_Connect Including SANS Security West 2012 & SANSFIRE 2012
Recent Forum Topics

cbtnuggets_logo_125.jpg
Try CBT Nuggets Free!

Vote For EH-Net

Add to Technorati Favorites
technorati fave

 
         
Advertisement

© 2012 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.