CSS Injection
Open
customization
enhancement
- Dominant language
- JavaScript
- Stars
- 10.1k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
Codimd seems to support custom CSS. This opens the door to adding malicious CSS payloads. On the harmless end, this would be an example:
```css
body { opacity: 0; }
```
Do server admins currently have the ability to disable custom CSS?
In cases where the feature is enabled, I suggest you employ a sandboxing approach; moving the displayed markdown to inside an iframe and leaving this issue open to track the implications of custom CSS and develop novel sandboxing ideas.
Contributor guide
Assessment
This issue has not been assessed yet.