Live data from Hacker News

I created an ephemeral group chat app for strangers

commonroom.chat

1–10 of 39 posts

Re: I created an ephemeral group chat app for strangers

#6
post #3

Neat little project, but you can pass HTML tags directly into the chat! doesn't seem to run, but can load from external sites. Be careful!

How can I fix this? this is my first full stack app I've built and it's nice seeing users interact with the site

Re: I created an ephemeral group chat app for strangers

#8
post #3

Neat little project, but you can pass HTML tags directly into the chat! doesn't seem to run, but can load from external sites. Be careful!

How can I fix this? this is my first full stack app I've built and it's nice seeing users interact with the site

https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Sc...

Edit: this focuses on script tags and other means to inject code, but most defenses also work for other injected tags

Re: I created an ephemeral group chat app for strangers

#9
post #4

Site is susceptible to some kind of css attack. Too bad.

How can I fix this?

You can try escaping HTML submitted from the form. Or even simply detecting the presence of any HTML tag and rejecting such submissiobs with a friendly error message.

Re: I created an ephemeral group chat app for strangers

#10

Earlier quoted context omitted.

How can I fix this?

You can try escaping HTML submitted from the form. Or even simply detecting the presence of any HTML tag and rejecting such submissiobs with a friendly error message.

ah yes! i will do this in the next version. someone recomended leaving some of the xss elements like the image and video function with the old school chat vibes but I'm not sure what to do lmaooo
Post reply on HN