About STP / 877.257.9531
Log In Join Now

Author



Rating

0


Published

Tuesday March 30th 2010 1pm

Oh the Irony!

Security Software Web
So last week I wrote an article for SearchSoftwareQuality on Quick Attacks for Web Security.

One of the techniques I mention was Cross-Site Scripting, or xSS.  (The x stands for "cross", ya dig?)

Put simply, with xSS, you type in and save some code, generally javascript, into an input box - say, your 'first name', and then, when someone else views your profile (or page, or blog post, or comment, etc), that javascript runs.

Once the javascript is running, the bad guys essentially have control of your browser.  They can use it to do something trivial, like display an ad, pop up a gambling website, or a less reputable site ... or maybe pop up a website that loads a trojan horse or virus program.

In the article I suggest testing for xSS by using an extremely simple, short piece of code I learned from my friend David Christiansen.  Here's the code:
<script>alert('f')</script>

Now if the browser loads the tags as HTML, it will interpret the code as an order to pop up a message box with the single letter 'f' on it.  You also won't see the tags, as they'll be interpreted as code.

So they put my article up on the site a little early without notifying me -- this is pretty standard practice and no big deal.

But then I get this Instant Message from Ajay Balamurugadas ...


You guessed it.  When he viewed the article, an 'f' popped up and the code to run the xSS attack did not appear!  Oh, the Irony!

Yes, dear, these attacks really do work.

Now, don't go worried that SearchSoftwareQuality is insecure; it is secure.  The assistant editor who published the article probably pasted into HTML mode instead of Visual mode, so the script tags were interpreted as HTML.

The thing is, that editor was a privileged user.  In order to even get the position to do the paste, he had to login.  The system trusted him, and he made an honest mistake.

If my code has been:
<SCRIPT src="http://xndev.com/standards.js"></SCRIPT>

I doubt he would have pasted it. Even if he had, there would be a paper trail right back to me; it would be foolish for me to give out something like that.

Which leads me to two other, more common attacks:

Social Engineering - tricking someone to doing something they have rights to but you do not

Escalation of Privilege - finding ways to do things beyond your (implied) privilege set

My article on web attacks was relatively technical; these other kinds of attacks are more social in nature.

If you'd be interested in seeing a future article in testing (and improving) web security through social efforts, just let me know.  That article practically writes itself ...


For what it's worth, standards.js generates the global navigation for my personal website.


Comments

You must be logged in to comment.
Retrieving Comments...


Advertisement






Friend SoftwareTestPro on Facebook
Follow @SoftwareTestPro on Twitter
Create or Join a Crew

Tweets You Care About


  • bestjobsonline (Best Jobs) SoftwareTest Engineer- QA - http://t.co/f8sZeNsd #internships #Adecco #Bothell
  • AjazQure (Ajaz ) Job: SoftwareTest Manager - Financial Services - CONTRACT - 6 Monthly in Dublin, Ireland http://t.co/MNBuo70C #job
  • AjazQure (Ajaz ) Know anyone for this job? SoftwareTest Manager - Financial Services - CONTRACT - 6 Monthly in Dublin, Ireland http://t.co/2tBccmYo #job
  • minibrain81 (Ralf Abramowitsch) RT @BW_Test: Fachgruppentreffen #Softwaretest am Do, 24.5. Thema: Ressourcenmanagement gestützte Testplanung. Anmeldung bis 22.5. https://t.co/oR9l53Ct
  • BW_Test (BW_Test) Fachgruppentreffen #Softwaretest am Do, 24.5. Thema: Ressourcenmanagement gestützte Testplanung. Anmeldung bis 22.5. https://t.co/oR9l53Ct
  • IVM_at (IVM-TC Wien GmbH) IVM sucht: Softwaretest... (Oberösterreich) #jobs Jetzt bewerben! http://t.co/1gdR1wfp
  • steidet (steit) Jobangebot Referenten Softwaretest e-/m-Commerce (w/m): Frankfurt am Main | Stellen aus Frankfurt am Main fuer R... http://t.co/ZtycVbSH
  • IVM_at (IVM-TC Wien GmbH) IVM sucht: Softwaretest... (Salzburg) #jobs Jetzt bewerben! http://t.co/glPX7nRl
  • IVM_at (IVM-TC Wien GmbH) IVM sucht: Junior Consultants für den Softwaretest... (Salzburg) #jobs Jetzt bewerben! http://t.co/JOgfpZWg
  • ClausVagner (Claus V. Pedersen) Doing a lecture on the correlation between #softwaretest and -architecture. If you have good/bad ex. from the world. Input is appreciated.
  • AjazQure (Ajaz ) Job: SoftwareTest Manager - Financial Services - CONTRACT - 6 Monthly in Dublin, Ireland http://t.co/MNBuo70C #job
  • AjazQure (Ajaz ) Job: SoftwareTest Manager - Financial Services - CONTRACT - 6 Monthly in Dublin, Ireland http://t.co/MNBuo70C #job
  • AjazQure (Ajaz ) SoftwareTest Manager - Financial Services - CONTRACT - 6 Monthly in Dublin, Ireland http://t.co/XJe2FSaK #job