Cross-site Scripting (XSS) - Reflected in forkcms/forkcms
Reported on
May 11th 2021
✍️ Description
The forkcms
is vulnerable to XSS through Online movies
id edition.
🕵️♂️ Proof of Concept
- With an authenticated user, access
http://localhost/private/en/media_library/media_item_index
. - Click on
New media
. - Select
Online movies (Youtube, Vimeo, ...)
and click onNext
. - Select any
Source
, write anything in theMovie id
andMovie title
fields and click onAdd movie
. - Click on
Back to overview
. - Select the
Movies
tab and click onEdit
over the movie added before. - In the
Movie ID
field, write<img src onerror=alert()>
and click onSave
. An alert will pop up.
💥 Impact
The PoC steps do not work anymore. The characters <
and >
are being sanitized.