Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Popcorn Time 0.4.7 - XSS to RCE #2491

Closed
alestorm980 opened this issue Apr 26, 2022 · 0 comments · Fixed by #2495
Closed

Popcorn Time 0.4.7 - XSS to RCE #2491

alestorm980 opened this issue Apr 26, 2022 · 0 comments · Fixed by #2495
Labels

Comments

@alestorm980
Copy link

Our security team found a security issue inside Popcorn Time 0.4.7. We have reserved the CVE-2022-25229 to refer to this issue. Attached below is the link to our responsible disclosure policy.

https://fluidattacks.com/advisories/policy

Bug description

Popcorn Time 0.4.7 has a Stored XSS in the Movies API Server(s) field via the settings page. The nodeIntegration configuration is set to on which allows the webpage to use NodeJs features, an attacker can leverage this to run OS commands.

CVSSv3 Vector:

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N

CVSSv3 Base Score:

7.7

Steps to reproduce

  1. Open the Popcorn time application.

  2. Go to settings.

  3. Enable Show advanced settings.

  4. Scroll down to the API Server(s) section.

  5. Insert the following PoC inside the Movies API Server(s) field and click on Check for updates.

a"><script>require('child_process').exec('calc');</script>
  1. Scroll down to the Database section and click on Export database.

  2. The application will create a .zip file with the current configuration.

  3. Send the configuration to the victim.

  4. The victim must go to Settings -> Database and click on Import Database

  5. When the victim restarts the application the XSS will be triggered and will run the calc command.

Screenshots and files

pop_poc

System Information

  • Version: Popcorn Time 0.4.7.
  • Operating System: Windows 10.0.19042 N/A Build 19042.
  • Installer: Popcorn-Time-0.4.7-win64-Setup.exe
@kiriles90 kiriles90 added this to Verifying in Popcorn Time Desktop via automation Apr 30, 2022
@kiriles90 kiriles90 added the bug label May 4, 2022
@kiriles90 kiriles90 moved this from Verifying to Bugs in Popcorn Time Desktop May 4, 2022
@kiriles90 kiriles90 removed this from Bugs in Popcorn Time Desktop May 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants