mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-08 11:16:47 +00:00
The settings page lists the themes of SASS_DIR and writes wvc-main.scss into it when the theme changes; the value could be any path, so a superuser could make the app list and write files anywhere it may (CodeQL py/path-injection). SASS_DIR is now accepted only if it resolves to an existing directory inside the project (the default is dev/scss). A stored value outside it is not used: the page shows an error and offers no themes, so nothing is written. Installations that keep their SCSS outside the project need to move it under it. The tests fail on the previous code for an absolute path, "../", a path climbing out and a missing directory, and for a stored value outside the project. |
||
|---|---|---|
| .. | ||
| migrations | ||
| templates | ||
| __init__.py | ||
| apps.py | ||
| context_processors.py | ||
| middleware.py | ||
| models.py | ||
| settings.py | ||
| test_appsettings.py | ||
| test_theme_name.py | ||
| tests.py | ||
| views.py | ||