Skip to content
Access control Write-up Intermediate

Emoji Reaction to Vertical Privileges Escalation

A normal user in a chat room could react to a room owner's message with an invalid emoji name, and the server then rendered that owner message as an error for everyone. This let an ordinary participant effectively remove or corrupt owner content, breaking message integrity and role-based permissions.

medium.com

Published on medium.com

This is my first blog post — excited to start sharing bug bounty write-ups and security lessons from the field. Please ignore any small mistakes as I’m still a debutant in writing blogs.

Ankit Rathva aka Gujarati Hacker, on medium.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 server did not validate the emoji value against a known list and did not handle the resulting error, so an invalid reaction corrupted the rendering of the owner's message for all participants.

Impact

Any normal user in the room could make an owner's message display an error instead of its content for all participants, which could be used to hide announcements or moderation actions and disrupt conversations.

What the attacker needed

Two accounts: owner and normal user; normal user is a member of the room; ability to intercept requests

The fix

The vendor acknowledged the issue and committed to a fix; properly, the server should validate reaction values against a known emoji list and handle invalid input without altering the message.

How it was found

  1. Create an owner account and a normal user account, and have the owner create a room and invite the normal user.
  2. As the owner, post a message in the room.
  3. From the normal user account, find the owner's message and react with a valid emoji while intercepting the request.
  4. Change the emoji parameter to an invalid emoji name and forward the request.
  5. Observe that the owner's message now shows an error instead of its content for everyone.

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.

In a chat app, some actions are meant to be limited to the room owner, such as keeping their messages intact. Here the server accepted a made-up emoji name from any user and did not handle the error properly, so the owner's message broke for everyone. The lesson is that servers must check and safely handle every value a user sends, not just the ones the interface offers.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.