What happened
REBUILD 4.5.0-4.5.4 exposes an MCP tool surface whose QueryRecords tool filters records by field without restricting sensitive columns. By sending prefix-match filters against User.password, a low-privileged user can treat the gateway's count response as a blind oracle to recover the admin password hash character by character and then authenticate as the administrator.
Why it matters
This turns an MCP integration (the agent-tool boundary) into a blind oracle that defeats password hashing, allowing privilege escalation to administrator via the agent gateway — a direct AI-system auth bypass, not just an info leak.
Attack vector
The MCP QueryRecords tool lets an authenticated low-privileged user filter the User.password field; an attacker sends LK2 prefix-match filters to the /gw/mcp/sse gateway and uses the returned record total count as an oracle to recover the administrator's SHA-256 hash one character at a time (CWE-202), then logs in as administrator.
Affected systems
REBUILD 4.5.0 through 4.5.4
Mitigation
Upgrade REBUILD to a patched release and restrict MCP QueryRecords field filtering (QueryRecords.java / AdvFilterParser.java).