Spacetime-Meta / spacetime-sdk

The spacetime-sdk is a turnkey virtual environment package for building in the Spacetime Metaverse
https://www.spacetimemeta.io/metaverse/spawn-planet
MIT License
11 stars 2 forks source link

Sanitize chat inputs #138

Closed Liquid-Blocks closed 2 years ago

Liquid-Blocks commented 2 years ago

When a new message is sent to the chat box, there is no filtering of the message to remove HTML tags or any other potentially harmful content.

The priority is to remove the <script> tag since injection is a security issue.

If possible (with no compromises on security), allow only the HTML tags related to text formatting ex: <b>, <u> , <i>

codeeMadness commented 2 years ago

Hi @Liquid-Blocks ,