Skip to content
Access control Disclosed report Intermediate

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.

dhiraj-mishra Follow

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

MariaDB.png
MariaDB.png From the original on HackerOne
MariaDB-2.png
MariaDB-2.png

The original report as published on HackerOne, by dhiraj-mishra. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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.

More by dhiraj-mishra

View all

2 more disclosed reports, best first.

More from MariaDB

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.