core: OPNsense: XPath injection in MVC safe-delete
What fixes it
No source in this snapshot names a fixed version. The vendor advisories under References are the place to check.
Description
OPNsense is a FreeBSD based firewall and routing platform. Prior to version 26.1.11, the safe-delete path reached through ApiMutableModelControllerBase::delBase() interpolates an unvalidated safe-delete token from the request URL into an XPath expression over config.xml before confirming that the token is a valid identifier. A user holding any one affected module privilege can send a crafted token to one of 21 affected delete endpoints covering Traffic Shaper, DHCP relay, Dnsmasq, Firewall Category, or Kea DHCP, causing the XPath to match configuration data across modules. The resulting error response exposes configuration item names, descriptions, reference paths, and UUIDs and provides an XPath substring-presence oracle, including for modules the user cannot otherwise access. The request does not modify configuration or perform a deletion. This issue is fixed in version 26.1.11.
Text from CVE List
Affected versions 1
- coreaffected: < 26.1.11CVE List
References 4
- github.com/opnsense/core/commit/631e14721b311badc1d3c0d29321e4d42585156bFixvia CVE List
- github.com/opnsense/core/commit/d7054cef69f72588feac1091254960835be19dfeFixvia CVE List
- github.com/opnsense/core/security/advisories/GHSA-98h6-479q-9q3wExploitvia CVE List
- hackerask.com/posts/opnsenseReferencevia CVE List