GHSA-x5w2-wcr8-9q45
JSON

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 packageVersionsReported by
silverstripe/framework (Packagist)before 3.1.17, from 3.2.0 before 3.2.2, from 3.3.0-beta1 before 3.3.0GitHub Advisory Database

Classification

References

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-x5w2-wcr8-9q45 changed 2024-11-28CC-BY-4.0