Inside Paulo Abrantes' head
[ start | index | login or register ]
start > 2006-01-14 > 1

hi5 and XSS

Created by pabrantes. Last edited by pabrantes, 2 years and 281 days ago. Viewed 1,165 times. #4
[diff] [history] [edit] [rdf]
labels
Category:security
attachments

hi5 and XSS

Well for the ones who don't know >>hi5 is a social network site that a lot of people use. They've now changed their look and had some new functionalities, including being able to use some HTML tags.
When I read that one single thing just came up to my mind, >>XSS. I had to try to it, after all we've seen hi5 developing team having some developing problems such as identifying established sessions (yes, I know it can be a living hell to handle distributed sessions prior to tomcat 5, and that could be the problem).

Anyway I've read in their small explanation that I could use <img> tags, so my first attempt was to directly inject the script

<img src="javascript:alert('XSS');">
Gladly it didn't work! But right after that I give it a try with a mouseover like this:
<img src="" onmouseover="alert('XSS');">

And there it was, an alert was poping in my page, after that I tried with a window.open(URL) script and once again I managed to popup a new window with the given URL, what if was an hi5.com spoofed page asking for user and password? Not to mention stealing cookies, managing properties, if we have an open window for javascript we can do almost anything!

I'm reporting back to hi5.com developing team also. But the most probable is that for some time everyone can have some fun (and steal some passwords) in the hi5 community.

I know nobody is perfect, and everyone makes mistakes, and maybe I'm being a bit rush with the hi5 dev guys, but nowadays XSS is like the first security problem every developer must check! For those who are interested and still don't know how to do it, here's a >>link on how to prevent it.

Please login to www.pabrantes.net.
Who am I?
paulo-roca2My name is Paulo Abrantes AKA pabrantes and I'm a software developer. I'm currently employed at >>CIIST working as a Java developer in >>FenixEDU.

This blog is mostly about Java programming, domain driven design and snipsnap bliki developing. Everything written in this blog is my personal opinion and it may not reflect the opinions of my employer and co-workers.


Blog subscription
subscribe by rss subscribe by email

Links
>> Home
>> Paulo's Profile
>> Post History
>> Add to Technorati Favorites
>> Paulo's Photo Gallery
>> WishList
>> Posting without Login

Search Blog
Fellow Bloggers

Recent Posts

Java Programming: Bytecode Injection
Intermission: Sorry For Downtime
Software Developing: Studying The Bliki Domain Model
SnipSnap Developing: Trying to settle a roadmap
System Administration: Load Balancing with Apache
Blogging: Two years have passed
Software Developing: The SnipSnap Saga
Java Programming: Getting your code spicy with Groovy
Software Developing: Fluent Interfaces
Software Developing: Implementing a ShoutBox on SnipsSnip
Software Developing: SnipSnap, SnipIt and SnipSnip
Java Programming: Proxies and Access Control
Java Programming: Proxies and References
Java Programming: References' Package
YALM: Yet Another Layout Modification

For older posts, please refer to post-history for a complete Post History

Logged in Users: (0)
… and 14 Guests.
This is a modified version of snipsnap.org created by >>Paulo Abrantes