Skip to content
Account takeover Write-up Advanced

A Twist in the Code: OpenMeetings Vulnerabilities through Unexpected Application State

A self-registered user could take over an admin account by creating an invitation with no room attached, then redeeming it with a wildcard hash to gain unrestricted access as the invited user. With admin privileges, the attacker could inject a null byte into a configured binary path to execute arbitrary commands on the server.

Stefan Schiller Follow

Published on sonarsource.com

OpenMeetings is a web conferencing application that can be used for video calls, presentations, and collaborative work. Its official docker image has been downloaded more than 50.000 times, and OpenMeetings can also be deployed as a plugin for applications such as Jira, Confluence, or Drupal.

Stefan Schiller (@scryh_), on sonarsource.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the combination of a weak hash comparison using SQL LIKE, missing restriction when an invitation has no room, and insufficient validation of configured binary paths allowing null-byte injection.

Impact

A self-registered attacker could take over an admin account and then execute arbitrary commands on the underlying server.

What the attacker needed

A self-registered account (enabled by default); ability to create events and rooms; ability to send invitations

The fix

The vulnerabilities were fixed in OpenMeetings 7.1.0 by adding a full hash match check, restricting permissions when no room is present, and validating the configured path with Path.of.

How it was found

  1. Create an event and join the associated room.
  2. Delete the event while still present in the room, creating a zombie room.
  3. Create an invitation for the admin user to this room, resulting in an invitation with no room attached.
  4. Redeem the invitation using a wildcard character in the hash to gain admin privileges.
  5. As admin, change the ImageMagick path to include a null byte and a shell command.
  6. Upload a fake image with a valid header followed by shell commands to execute them.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

OpenMeetings lets users invite others to a room via a link containing a random code. The code was checked using a database pattern match that accepts wildcards, so an attacker could guess codes. Also, if an invitation had no room, redeeming it gave full access as the invited user. An attacker could create such an invitation by deleting a room while still inside it, then invite an admin and redeem the invitation with a wildcard to become admin. As admin, they could set a program path to something like a shell and run commands on the server.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

More by Stefan Schiller

View all

10 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.