Consider security and possible forms of misuse of octomode #2
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I will dive into this thread around the Televex project as a start: varia/televex#1
And next to that check Crunk's work on distribusi-verse to see how sanitizing has been done in Flask: https://git.vvvvvvaria.org/crunk/distribusi-verse
Small research: XSS attacks is something to be careful with https://en.wikipedia.org/wiki/Cross-site_scripting.
About sanitizing Markdown in combination with Mozilla's HTML Bleach python library: https://github.com/Python-Markdown/markdown/issues/392
Bleach, by Mozilla: https://github.com/mozilla/bleach
What is a good CSS sanitizer? Crunk:
On top of sanitizing the Markdown and CSS, would it be needed to add something like Talisman to configure Content Security Policy settings and things like that?
Both the https://git.vvvvvvaria.org/crunk/distribusi-verse and https://git.vvvvvvaria.org/varia/varia-library-website also have CSRF protection.
More on that here: https://owasp.org/www-community/attacks/csrf
This is mostly when working with flask-wtf and wtforms.
Logging the following from the infra chat:
It should probably also be run as a limited permissions user with a strictly defined set of folders etc that it can read/write to.
Would you do that with a
chroot
? I got confused reading that this involvesssh
, and a system user does not usessh
to interact with the server, right?d5369bc142
, I succesfully used bleach in distribusi-verseUsing a
chroot
is complicated unfortunately... I like the suggestion in varia/octomode#2 (comment)So you just do a
nologin
system user which has no root permissions.