Dsek-LTH / web

The D-guild's primary web page
https://dsek.se
European Union Public License 1.2
22 stars 9 forks source link

Information leak in website source code #550

Open danieladugyan opened 3 weeks ago

danieladugyan commented 3 weeks ago

Description

Information that I would expect to be somewhat private is currently accessible through the website's source code. For instance, it seems LOTS of rows from our member database is simply inlined into the source code. The screenshot below is a very small excerpt from what you can see in the source code.

image

Steps to reproduce

Step 1. Go to dsek.se Step 2. Right-click and choose "view source". Step 3. Scroll down to the bottom script and see the exposed data.

Further information

SvelteKit has a feature where "During server-side rendering, the response will be captured and inlined into the rendered HTML" which seems related to this. However, that's related to making fetch() calls so I'm not sure what's going on here.