A missing authorization issue was discovered in Kibana. An attacker with privileges to enable or disable detection rules could enable a rule containing endpoint response actions that they are not authorized to use. If a privileged user previously created a disabled rule with these actions, the attacker could cause those actions to execute on managed endpoints when the rule fires.
A user with Saved Objects Management: All and Rules and Exceptions: Read with the Enable/Disable sub-feature can also import a crafted alert saved object containing an Endpoint response action and enable it. When the imported rule fires, the action executes without the corresponding Endpoint response-action privilege.
Do not grant the Enable/Disable rules sub-feature to users lacking endpoint response-action privileges.
Upgrade Kibana versions 9.4.5 through 9.5.6 to 9.5.7.