GHSA-x5w2-wcr8-9q45
6.5medium
Silverstripe Missing security check on dev/build/defaults
- Severity
- 6.5medium CVSS:3.1 by GitHub
- Published
- Last changed
Description
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
| Product or package | Versions | Reported by |
|---|---|---|
| silverstripe/framework (Packagist) | before 3.1.17, from 3.2.0 before 3.2.2, from 3.3.0-beta1 before 3.3.0 | GitHub Advisory Database |
Classification
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-x5w2-wcr8-9q45 changed 2024-11-28 | CC-BY-4.0 |