fix(permissions): ignore unknown permission values
The permission checks did not check for unknown permission values submitted to the server. This allowed bypassing permission checks under certain circumstances. However, this is not as critical as it might sound at first, since checks guard that only the owner can modify note permissions and the owner already has always full permission to their note. Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
|
||||
## <i class="fa fa-tag"></i> 1.11.1 <i class="fa fa-calendar-o"></i> 2026-07-24
|
||||
|
||||
### Security fixes
|
||||
|
||||
- [GHSA-93w7-49m2-cqwg](https://github.com/hedgedoc/hedgedoc/security/advisories/GHSA-93w7-49m2-cqwg) reports possible corruption of permission values due to missing validation. This should not impact permission checks, except when the note owner intentionally set their note permission to something invalid.
|
||||
|
||||
### Enhancements
|
||||
|
||||
- Added external link warning setting (`externalLinkWarning` in config.json or `CMD_EXTERNAL_LINK_WARNING`) to disable the external link warning page entirely
|
||||
|
||||
Reference in New Issue
Block a user