Fedora Account System
Red Hat Associate
Red Hat Customer
A flaw was found in rhsm-subscriptions (Subscription Watch). The EventRecordRepository.findConflictingEvents method builds a native SQL query by formatting the orgId and instanceId values of events into single-quoted string literals without escaping or parameter binding, and executes it with createNativeQuery. Event ingestion validates only that instanceId is not null. The instanceId of events derived from host inventory is the host's provider_id, which host inventory accepts as any string of up to 500 characters. Based on static code review, a customer-controlled provider_id may therefore reach the query and alter the executed SQL, which could allow reading or modifying data in the service database. This was determined by static code review; it has not been tested against a running instance.
*** Bug 2588683 has been marked as a duplicate of this bug. ***
*** Bug 2588684 has been marked as a duplicate of this bug. ***
*** Bug 2588685 has been marked as a duplicate of this bug. ***