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

revisit "Countermeasures" section #15

Open
TallTed opened this issue Jun 19, 2024 · 1 comment
Open

revisit "Countermeasures" section #15

TallTed opened this issue Jun 19, 2024 · 1 comment

Comments

@TallTed
Copy link
Contributor

TallTed commented Jun 19, 2024

### Countermeasures ### {#serving-user-created-files-countermeasures}
* Multiple agents can create files on the same server, which could render `same-origin` security boundaries useless.
* As one possible countermeasure, servers could add a [`Content-Security-Policy: sandbox`](https://www.w3.org/TR/CSP3/#directive-sandbox) header to artificially enable `same-origin` security policies for files served on the same origin.

The first bullet under countermeasures is more of a vulnerability than a countermeasure, and should be moved.... or rephrased to focus on how "same-origin security boundaries" can work as a countermeasure.

(The current point of the first bullet should be moved to the vulnerabilities section, or start a new section focusing on this vulnerability, if the document restructuring discussed previously is implemented.)

Having only one or two countermeasures seems insufficient for an entire section, meant to address all vulnerabilities. But having few countermeasures is fine if they are addressing a single vulnerability, as in the previously suggested restructuring.

@josephguillaume
Copy link

Just adding link to existing discussion:
Prevent or sanitise HTML on write by default for unauthenticated users
CommunitySolidServer/CommunitySolidServer#1596

Limiting writing of executable code should be included as a partial countermeasure, at least:

  • Prevent or sanitise HTML on write by default for unauthenticated users
  • Use data validation constraints - if a container should only contain RDF, don't allow writing executable code in any form, including HTML, js, markdown with unsanitised HTML..., SVG ...

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