User Account Deletion and more via Clickjacking in heroiclabs/nakama

Valid

Reported on

May 24th 2022


Description

As nakama console is not restricted from being loaded in an iframe, clickjacking attack is possible.

Proof of Concept

  1. Login to nakama console.
  2. Save the following as an .html file and open it in the browser to see that the page loads into an iframe.
<iframe src="http://<ip-address>:<port>"></iframe>

Impact

Deletion of user accounts in User Management section.
Deletion or Banning of users in the User Accounts Deletion of Storage Objects and User Groups section and more.

While it impacts a number of features, adding a proper X-Frame-Options header in the response remediates all of the occurrences

We are processing your report and will contact the heroiclabs/nakama team within 24 hours. 3 months ago
nerrorsec modified the report
3 months ago
nerrorsec modified the report
3 months ago
We have contacted a member of the heroiclabs/nakama team and are waiting to hear back 3 months ago
We have sent a follow up to the heroiclabs/nakama team. We will try again in 7 days. 2 months ago
heroiclabs/nakama maintainer has acknowledged this report 2 months ago
Andrei Mihu
2 months ago

Maintainer


Thanks for the report, we're looking into this and will respond in more depth as soon as possible.

nerrorsec
2 months ago

Researcher


Is there any update?

nerrorsec
2 months ago

Researcher


Here is a video POC: https://www.youtube.com/watch?v=uyC-6HpwX34

nerrorsec modified the report
a month ago
nerrorsec modified the report
a month ago
nerrorsec
a month ago

Researcher


I have removed the POC code added before as it required modification on a case by case basis to work. While the iframe code works to verify, here is a POC video.

nerrorsec
a month ago

Researcher


*POC video: https://youtu.be/1Vic7fY78jc

nerrorsec modified the report
a month ago
nerrorsec modified the report
a month ago
Andrei Mihu validated this vulnerability a month ago
nerrorsec has been awarded the disclosure bounty
The fix bounty is now up for grabs
The researcher's credibility has increased: +7
Andrei Mihu confirmed that a fix has been merged on 50642a a month ago
The fix bounty has been dropped
to join this conversation