BugTraq
Yahoo! Bug Bounty #25 Flickr API - Persistent Service Vulnerability Jul 07 2014 01:31PM
Vulnerability Lab (research vulnerability-lab com)
Document Title:
===============
Yahoo! Bug Bounty #25 Flickr API - Persistent Vulnerability

References (Source):
====================
http://www.vulnerability-lab.com/get_content.php?id=1132

Release Date:
=============
2014-07-06

Vulnerability Laboratory ID (VL-ID):
====================================
1132

Common Vulnerability Scoring System:
====================================
4.1

Product & Service Introduction:
===============================
Flickr is an image hosting and video hosting website, and web services suite that was created by Ludicorp in 2004 and acquired by Yahoo 2005.
In addition to being a popular website for users to share and embed personal photographs, and effectively an online community, the service is
widely used by photo researchers and by bloggers to host images that they embed in blogs and social media.

The Verge reported in March 2013 that Flickr had a total of 87 million registered members and more than 3.5 million new images uploaded daily.
In August 2011 the site reported that it was hosting more than 6 billion images and this number continues to grow steadily according to
reporting sources. Photos and videos can be accessed from Flickr without the need to register an account but an account must be made in order
to upload content onto the website. Registering an account also allows users to create a profile page containing photos and videos that the
user has uploaded and also grants the ability to add another Flickr user as a contact. For mobile users, Flickr has official mobile apps for
iOS, Android, PlayStation Vita, and Windows Phone operating systems.

(Copy of the Homepage: http://en.wikipedia.org/wiki/Flickr )

Abstract Advisory Information:
==============================
The Vulnerability Laboratory Research team discovered a persistent input validation web vulnerability in the official Yahoo Flickr! website web-application and api.

Vulnerability Disclosure Timeline:
==================================
2013-11-03: Researcher Notification & Coordination (Ateeq ur Rehman Khan - Vulnerability Lab)
2013-11-04: Vendor Notification (Yahoo! Security Team - Bug Bounty Program)
2014-01-09: Vendor Response/Feedback (Yahoo! Security Team - Bug Bounty Program)
2014-06-22: Vendor Fix/Patch (Yahoo! Developer Team - HackerOne Reward: 1000$)
2014-07-06: Public Disclosure (Vulnerability Laboratory)

Discovery Status:
=================
Published

Affected Product(s):
====================
Yahoo!
Product: Flickr Web Application - YPL API 2013 Q3

Exploitation Technique:
=======================
Remote

Severity Level:
===============
Medium

Technical Details & Description:
================================
A persistent input validation vulnerability has been discovered in the official Yahoo Flickr! website web-application and api.
The vulnerability allows remote attackers to inject own malicious script codes to the application-side of the online-service.

The vulnerability is located in the flickr `invite` mail notification module. Remote attackers are able to inject payloads to
the `message` value of the web-application notification service after the registration. The remote attacker can send invitation
mails through the yahoo online-service module with manipulated message body context. The attack vector of the issue is located
on the application-side and the request method to inject own malicious codes is POST.

The security risk of the persistent remote web vulnerability is estimated as medium with a cvss (common vulnerability scoring
system) count of 4.1. Exploitation of the vulnerability requires low user interaction and a low privileged flickr web-application
user account. Successful exploitation of the vulnerability result in session hijacking (customers), account steal via persistent
web attack (mail), persistent phishing or persistent manipulation of notification mails module context.

Vulnerable Service(s):
[+] Yahoo! > Flickr

Vulnerable Module(s):
[+] Invite (Invitation of Users)

Vulnerable Module(s):
[+] Notification Service (eMails)

Vulnerable Parameter(s):
[+] message (body)

Proof of Concept (PoC):
=======================
The persistent input validation web vulnerability can be exploited by remote attackers with low privileged yahoo web application user account
and low user interaction. For demonstration or to reproduce the security vulnerability follow the provided information and steps below to continue.

PoC: Flickr Message - Invitation Attachment > Message Body

<tr style="mso-yfti-irow:1">
<td style="padding:1.5pt 1.5pt 1.5pt 1.5pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif""> <o:p></o:p></span></p>
</td>
</tr>
<tr style="mso-yfti-irow:2">
<td style="border:solid #CCCCCC 1.0pt;mso-border-alt:solid #CCCCCC .75pt;
padding:7.5pt 7.5pt 7.5pt 7.5pt">
<p class="MsoNormal" style="line-height:13.5pt"><span style="font-size:
10.0pt;font-family:"Arial","sans-serif"">I want to share my Flickr
photostream with you. If you get bored of that, there's loads of other
things to see there too. '%3d[PERSISTENT INJECTED SCRIPT CODE VIA MESSAGE VALUE!!!]'>"><b><span style="color:#E83DA6">free</span></b>
and takes less than a minute with your Yahoo! ID.<o:p></o:p></span></p>
</td>
</tr>

Note: pTest:> bugbountyevo (at) yahoo (dot) com [email concealed]

Reference(s):
http://www.flickr.com/invite/
http://www.flickr.com/

Solution - Fix & Patch:
=======================
The vulnerability can be patched by a secure parse and encode of the vulnerable message body value input.
Filter or encode also the outgoing mails with the vulnerable db stored message body context to prevent script cod executions.

Security Risk:
==============
The security risk of the persistent input validation web vulnerability is estimated as medium(+).

Credits & Authors:
==================
Vulnerability Laboratory [Research Team] - Ateeq ur Rehman Khan (ateeq (at) evolution-sec (dot) com [email concealed]) [www.vulnerability-lab.com]

Disclaimer & Information:
=========================
The information provided in this advisory is provided as it is without any warranty. Vulnerability Lab disclaims all warranties, either
expressed or implied, including the warranties of merchantability and capability for a particular purpose. Vulnerability-Lab or its suppliers
are not liable in any case of damage, including direct, indirect, incidental, consequential loss of business profits or special damages, even
if Vulnerability-Lab or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation
of liability for consequential or incidental damages so the foregoing limitation may not apply. We do not approve or encourage anybody to break
any vendor licenses, policies, deface websites, hack into databases or trade with fraud/stolen material.

Domains: www.vulnerability-lab.com - www.vuln-lab.com - www.evolution-sec.com
Contact: admin (at) vulnerability-lab (dot) com [email concealed] - research (at) vulnerability-lab (dot) com [email concealed] - admin (at) evolution-sec (dot) com [email concealed]
Section: dev.vulnerability-db.com - forum.vulnerability-db.com - magazine.vulnerability-db.com
Social: twitter.com/#!/vuln_lab - facebook.com/VulnerabilityLab - youtube.com/user/vulnerability0lab
Feeds: vulnerability-lab.com/rss/rss.php - vulnerability-lab.com/rss/rss_upcoming.php - vulnerability-lab.com/rss/rss_news.php
Programs: vulnerability-lab.com/submit.php - vulnerability-lab.com/list-of-bug-bounty-programs.php - vulnerability-lab.com/register/

Any modified copy or reproduction, including partially usages, of this file requires authorization from Vulnerability Laboratory. Permission to
electronically redistribute this alert in its unmodified form is granted. All other rights, including the use of other media, are reserved by
Vulnerability-Lab Research Team or its suppliers. All pictures, texts, advisories, source code, videos and other information on this website
is trademark of vulnerability-lab team & the specific authors or managers. To record, list (feed), modify, use or edit our material contact
(admin (at) vulnerability-lab (dot) com [email concealed] or research (at) vulnerability-lab (dot) com [email concealed]) to get a permission.

Copyright © 2014 | Vulnerability Laboratory [Evolution Security]

--
VULNERABILITY LABORATORY RESEARCH TEAM
DOMAIN: www.vulnerability-lab.com
CONTACT: research (at) vulnerability-lab (dot) com [email concealed]

[ reply ]


 

Privacy Statement
Copyright 2010, SecurityFocus