Edoardo Ottavianelli

Security Researcher and Open Source Developer. Passionate about Computing, Nature and cooking.

Contact me

CVE-2023-27069

Author: Edoardo Ottavianelli
14/03/2023

In this post I will go through CVE-2023-27069: the description, replication of the vulnerability and POC.

openplatform is an Open-source Javascript based "beautiful and simple portal for running, integrating and managing multiple 3rd party web applications" (link to the GitHub repo). From the GitHub description we can read:
"OpenPlatform is a stylish and straightforward Web OS platform / Portal for running, integrating, and managing multiple 3rd party web applications. OpenPlatform provides running applications with a set of services, such as user and security management or notifications, so that programmers can focus on business logic. OpenPlatform is an enterprise-ready solution".

Among its benefits they list:
  • container for 3rd party apps
  • Supports user groups and permissions
  • Supports notifications, and sounds
  • Powerful user management
  • Fully optimized for mobile devices
  • and many more...
openplatfom cve
openplatfom cve

Description of the vulnerability

The account name is not properly sanitized and can execute Javascript code when reflected in the website. I've opened an issue in GitHub issue tracker (https://github.com/totaljs/openplatform/issues/52) and after few hours the maintainer provided a patch (https://github.com/totaljs/openplatform/commit/b6a128a5cc130394ca8c397db01a6e53b64c0948).

Replication of the vulnerability

  • Login in the application.
  • Click on user profile picture in the right corner below.
  • Click My Account
  • Set "><img src=x onerror=alert(document.domain)> as account name and save.
  • XSS fires.
  • Each time a target will visit the dashboard the payload will fire, even if the target is not logged in! In order to test this, just click logout and reload the page.
openplatfom cve poc

openplatfom cve poc

POC

See the Youtube Video POC at the top of the page.

References