Document Title:
===============
My Movie Collection Sinatra App - (Movie) XSS Vulnerability
Date:
=====
2021-11-01
References:
===========
https://www.vulnerability-lab.com/get_content.php?id=2294
VL-ID:
=====
2294
Common Vulnerability Scoring System:
====================================
5.6
Vulnerability Class:
====================
Cross Site Scripting - Persistent
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:
=========
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)
Report-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)
Status:
========
Published
Exploitation-Technique:
=======================
Remote
Severity:
=========
Medium
Details:
========
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:
=================
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
">