OpenNMS REST authorization bypass via non-canonical HTTP method
The OpenNMS Group Meridian · The OpenNMS Group Horizon
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| The OpenNMS Group Meridian |
| No fix yet |
| The OpenNMS Group Horizon |
| No fix yet |
Original description
An authorization bypass vulnerability exists in the REST API of multiple versions of OpenNMS Meridian and Horizon. The /rest/** Spring Security filter chains authorize requests with intercept-url rules that name the HTTP method as an uppercase token, compare the method case-sensitively, and have no terminal deny rule. A request that uses a non-canonical (for example lowercase) method token matches no rule and is processed without authentication. A remote, unauthenticated attacker can read the monitored inventory and can create, modify, or delete resources through the REST API, which includes injecting events to fabricate or suppress alarms. The /rest/alarms chain has the same missing deny rule and discloses whether an alarm exists through a difference in the response. The fix adds a terminal deny rule to each REST filter chain.