Any authenticated user can use the snmpConfig ReST service

Description

The snmpConfig ReST service will happily give up the SNMP configuration data, including community strings (but happily not USM credentials) for a particular IP address. This fact breaks with a long-standing policy of the SNMP configuration being a "trap door" into which only admin users can put stuff and from which no user (not even an admin) can retrieve stuff except by virtue of having an operating system account on the OpenNMS server. Also, it appears that even non-admin users are allowed to do a PUT to this service, which should not be the case. At minimum I think ROLE_ADMIN should be required for a user to GET or PUT to this service.

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Gabriela Lopez January 30, 2023 at 6:20 PM

Information Security rates this as medium.

CVSS: 8.2 x med likelihood .8 = 6.6 medium

AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N/E:P/RL:O/RC:C/CR:H/IR:H/AR:H/MAV:A/MAC:X/MPR:X/MUI:X/MS:X/MC:X/MI:X/MA:X

Seth Leger April 2, 2012 at 2:25 PM

I added a restriction to applicationContext-spring-security.xml that will only allow users with ROLE_ADMIN (admin users) or ROLE_REST (users that are granted write access to the REST interface) to view and update SNMP authentication information. Marking as fixed.

commit 8fdd5f9f87418ad9e44cd7062b51ca5df0a8c3ff

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

PagerDuty

Created February 16, 2012 at 9:29 AM
Updated January 30, 2023 at 6:20 PM
Resolved April 2, 2012 at 2:25 PM