An authenticated low-privileged user with permissions to create or edit alert rules in a folder can bypass datasource permission enforcement. By setting the client-controlled `queryType` variable to ` expr ` while providing the UID of a real datasource, the attacker can execute queries against a datasource for which they lack `datasources:query` permissions. This occurs because the authorization path treats the query as a server-side expression and skips permission checks, but the evaluator subsequently executes the query using the real datasource identified by `datasourceUid` and Grafana's configured credentials. This can lead to unauthorized data exposure and potential state-changing queries depending on the datasource backend.