Incorrect Permission Assignment for Critical Resource
The MariaDB code creates a named pipe security descriptor with a NULL DACL. An attacker could set it to deny all access, even to administrators, possibly leading to privilege escalation.
Originally disclosed on HackerOne
- Disclosed after 3 months
Dear Team,
Product Affected: https://github.com/MariaDB/server
File: /server/blob/10.3/sql/mysqld.cc#L2761
}
if (!SetSecurityDescriptorDacl(&sdPipeDescriptor, TRUE, NULL, FALSE))
{
This was purely identified on code review, Never create NULL ACLs.
A mail was sent to [email protected] and MariaDB team is working on this and a fix will be pushed in next version, attached mail headers for your reference.
Impact
An attacker can set it to Everyone (Deny All Access), which would even forbid administrator access and may lead to privilege escalation.
Attachments


Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the code passes NULL as the DACL to SetSecurityDescriptorDacl, which creates a NULL DACL that grants full access to everyone.
Impact
An attacker could set the ACL to deny all access, even to administrators, potentially leading to privilege escalation.
The fix
The MariaDB team is working on a fix that will be pushed in the next version.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
In Windows, a security descriptor controls access to a resource like a named pipe. This report says the MariaDB code sets a NULL ACL, which could let an attacker lock out even administrators.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.