Lucene search

K
githubGitHub Advisory DatabaseGHSA-X5W2-WCR8-9Q45
HistoryMay 23, 2024 - 7:14 p.m.

Silverstripe Missing security check on dev/build/defaults

2024-05-2319:14:12
CWE-425
GitHub Advisory Database
github.com
3
silverstripe
security check
builddefaults
developmentadmin
login check
database state
table structure

6.9 Medium

AI Score

Confidence

Low

The buildDefaults method on DevelopmentAdmin is missing a permission check.

In live mode, if you access /dev/build, you are requested to login first. However, if you access /dev/build/defaults, then the action is performed without any login check. This should be protected in the same way that /dev/build is.
The buildDefaults view is requireDefaultRecords() on each DataObject class, and hence has the potential to modify database state. It also lists all modified tables, allowing attackers more insight into which modules are used, and how the database tables are structured.

Affected configurations

Vulners
Node
silverstripeframeworkRange3.1.16
OR
silverstripeframeworkRange<3.3.0
OR
silverstripeframeworkRange3.2.1

6.9 Medium

AI Score

Confidence

Low