Advisory

GHSA-x5w2-wcr8-9q45

Also known as: None

Summary

Silverstripe Missing security check on dev/build/defaults

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-05-23 19:14 UTC
Modified
2024-11-28 05:41 UTC

Affected packages and fixes

silverstripe/framework

Packagist · All systems

Affected

  • introduced 0, fixed 3.1.17 (ecosystem)

Fixed versions

3.1.17

Fix

The export has no generic command for this ecosystem.

silverstripe/framework

Packagist · All systems

Affected

  • introduced 3.2.0, fixed 3.2.2 (ecosystem)

Fixed versions

3.2.2

Fix

The export has no generic command for this ecosystem.

silverstripe/framework

Packagist · All systems

Affected

  • introduced 3.3.0-beta1, fixed 3.3.0 (ecosystem)

Fixed versions

3.3.0

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences