1.1 KiB
1.1 KiB
Nextcloud Server — CWE-407 Scan Result: CLEAN
Scanned: 2026-03-30 Target: https://github.com/nextcloud/server (PHP) Focus: lib/private/, apps/ — sharing, file operations, CalDAV, contacts, app management, encryption, LDAP
Summary
No CWE-407 defects found. Nextcloud uses PHP associative arrays (hash maps) for most
hot-path membership tests. The in_array() calls found (386 total, 62 inside foreach
loops) all operate on:
- Constant-size field/property arrays (< 15 elements)
- Config-level lists bounded by application count (< 100)
- Early-exit search patterns with small search spaces
- Error/logging paths not on hot execution path
Notable non-defects reviewed
lib/private/AppConfig.phpstrictnessApplied dedup — logging path onlylib/private/Collaboration/Collaborators/GroupPlugin.php— bounded by $limit parameterlib/private/Log/ExceptionSerializer.phpremoveValuesFromArgs — error path onlyapps/files_external/lib/Lib/ApplicableHelper.phpdiffApplicable — config-level groups/userslib/private/Files/Cache/Cache.phpnormalizeData — constant-size field arrays