Popcorn Time 0.4.7 - XSS to RCE

7.7

High

Discovered by 

Oscar Uribe

Offensive Team, Fluid Attacks

Summary

Full name

Popcorn Time 0.4.7 - XSS to RCE

Code name

State

Public

Release date

May 17, 2022

Affected product

Popcorn Time

Affected version(s)

Version 0.4.7 (Just Keep Swimming)

Vulnerability name

XSS to RCE

Remotely exploitable

No

CVSS v3.1 vector string

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

CVSS v3.1 base score

7.7

Exploit available

No

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.

Proof of Concept

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>
  6. Scroll down to the Database section and click on Export database.

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

  8. Send the configuration to the victim.

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

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

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

Exploit

There is no exploit for the vulnerability but can be manually exploited.

Mitigation

An updated version of PopcornTime is available at the vendor page.

References

Timeline

Vulnerability discovered

Apr 26, 2022

Vendor Confirmed Vuln.

May 4, 2022

Vulnerability patched

May 7, 2022

Vendor contacted

Apr 26, 2022

Public disclosure

May 17, 2022

Start your 21-day free trial

Discover the benefits of our Continuous Hacking solution, which organizations of all sizes are already enjoying.

Start your 21-day free trial

Discover the benefits of our Continuous Hacking solution, which organizations of all sizes are already enjoying.

Start your 21-day free trial

Discover the benefits of our Continuous Hacking solution, which organizations of all sizes are already enjoying.

Fluid Attacks' solutions enable organizations to identify, prioritize, and remediate vulnerabilities in their software throughout the SDLC. Supported by AI, automated tools, and pentesters, Fluid Attacks accelerates companies' risk exposure mitigation and strengthens their cybersecurity posture.

SOC 2 Type II

SOC 3

Subscribe to our newsletter

Stay updated on our upcoming events and latest blog posts, advisories and other engaging resources.

© 2025 Fluid Attacks. We hack your software.

Fluid Attacks' solutions enable organizations to identify, prioritize, and remediate vulnerabilities in their software throughout the SDLC. Supported by AI, automated tools, and pentesters, Fluid Attacks accelerates companies' risk exposure mitigation and strengthens their cybersecurity posture.

SOC 2 Type II

SOC 3

Subscribe to our newsletter

Stay updated on our upcoming events and latest blog posts, advisories and other engaging resources.

© 2025 Fluid Attacks. We hack your software.

Fluid Attacks' solutions enable organizations to identify, prioritize, and remediate vulnerabilities in their software throughout the SDLC. Supported by AI, automated tools, and pentesters, Fluid Attacks accelerates companies' risk exposure mitigation and strengthens their cybersecurity posture.

SOC 2 Type II

SOC 3

Subscribe to our newsletter

Stay updated on our upcoming events and latest blog posts, advisories and other engaging resources.

© 2025 Fluid Attacks. We hack your software.