Jump to content

DOM Based Cross Site Scripting Attacks - Can you explain it to me?


Akula

Recommended Posts

I understand the more traditional persistant/non-persistant XSS attacks but the newer DOM based attacks are a bit more nebulous because I am not a coder.

 

I know they exploit Document Objects, but how does one place the javascript call into the document object, is it simply a variable replacement in the URI?

 

If you understand how these attacks work, can you explain it to me?

Link to comment
Share on other sites

Anyway...

 

Traditional XSS is usually document-based, like if our version of VB was vulnerable and I inserted a script into this post to read cookie information stored in your browser.

 

DOM-based takes advantage of open URL's on any web server to run the malicious code. Basically a URL that accepts any input without sanitizing could be used to request a script and upon the host server not recognizing the request, sends it back to the browser where it's rendered and reads the cookie information stored in the browser. You need only trick the user into clicking on the URL, you don't need control of the app or server.

 

The app and/or server should be modified to not allow any random input.

 

Now for the advanced bit I said before...

 

Desktop apps like Adobe Reader, Microsoft Word, etc. can launch inside of a web browser making them basically an extension of the browser. An attack could take advantage of vulnerable Adobe Reader by passing a variable in the document request which would be processed by Reader and them passed to the browser and exploited. Basically, a rich web app could be used as an intermediary for an attack, where the attack would normally be blocked by the browser.

 

Does all that make sense?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...