Skip to content

Hunt prep

Before you test MariaDB

What 61 disclosed reports say about MariaDB: what was found and paid, what was fixed, and where it may be worth looking next.

with a public bounty
0
median public bounty
–
highest public bounty
–

Gaps worth testing 14

Ideas drawn from this program's disclosed reports and our class lessons. None of them is a known bug: each is a place to look, and the reports linked under it are why. Check the current scope before testing anything.

  1. 1

    Test other geometry functions for the same short-WKB over-read

    Memory corruption Read the lesson

    The spatial over-read in #816 came from geometry functions reading a fixed-width integer without checking the buffer length. Try the remaining spatial accessors and predicates (area, centroid, point count, envelope and similar) against truncated WKB and WKT values, since the fix likely touched only the reported functions. Also check the GeoJSON and WKT parsers for the same missing length checks.

  2. 2

    Probe other Connector/ODBC functions for handle-type confusion

    Memory corruption Read the lesson

    Report #882 showed descriptor-handle macros used on statement objects. Audit the other ODBC handle types (environment, connection, descriptor) and the remaining catalog and attribute functions for the same wrong-macro pattern, since a single fix may not cover every call site. A malicious server can supply the values that make the write land usefully.

  3. 3

    Check other Connector/C++ metadata methods for escaper re-escaping

    SQL injection Read the lesson

    The string escaper in #886 re-scanned its own output, and sibling helpers were noted as hardcoding behaviour. Test the other DatabaseMetaData methods and any identifier-quoting path with crafted schema, table and column names to see whether the same double-escaping or missing quoting appears. The savepoint and multi-statement issues in #884 suggest identifier handling is a weak area.

    From the lessons: Database client libraries and command line utilities.; Review Node.js database libraries for missing parameter escaping and t...

  4. 4

    Test other client utilities for unescaped database-supplied names

    SQL injection Read the lesson

    Reports #866 and #1054 show dump and show tools building SQL from stored identifiers without escaping. Exercise the remaining command-line utilities and SHOW variants against a database with crafted identifiers, including the restore path where a privileged user imports attacker-controlled output. The root cause is shared, so sibling tools are worth checking.

    From the lessons: Database client libraries and command line utilities.; Review Node.js database libraries for missing parameter escaping and t...

  5. 5

    Look for more auth-switch guard logic flaws in connectors

    Access control Read the lesson

    The TLS auth-switch guard in #876 failed only on hostname verification because of a bitmask comparison. Test the equivalent guard in the other connectors and in the server auth plugins, varying which verification flags fail, to see whether a cleartext or weaker auth plugin can still be negotiated. This is a logic class that tends to repeat across implementations.

  6. 6

    Probe other server-controlled lengths for unbounded allocation

    DoS Read the lesson

    Several reports (#1067, #1073, #1038) show the client trusting a server-supplied length or count. Test the remaining protocol fields that size buffers or loop counts in the C, C++ and Java connectors, including prepared-statement metadata and result-set headers, for missing upper bounds. The pattern is consistent enough that other fields are likely unguarded.

  7. 7

    Test other privilege-grant cleanup paths for stale grants

    Access control Read the lesson

    Report #1050 found DROP PACKAGE left a grant behind. Check the other DROP and RENAME statements for procedures, functions, roles and users to see whether grants, definers or cache entries survive and can be inherited by a later object of the same name. The privilege cache collision in #22448 is a related angle.

  8. 8

    Check other definer and option strings for newline injection

    Access control Read the lesson

    Report #1055 showed definer identities serialised without escaping. Test other stored option strings that carry user-controlled names, such as view algorithms, SQL SECURITY clauses and routine characteristics, for the same injection of extra options. The legacy alias handling in #1056 and #1057 suggests name parsing is broadly fragile.

  9. 9

    Exercise other storage engines for the same units and bounds mistakes

    Memory corruption Read the lesson

    Reports #22446, #22411 and #1034 show storage engines trusting sizes or widths from files and rows. Test the remaining engines (Aria, ARCHIVE, SEQUENCE and the CONNECT table types) with crafted widths, key segments and row counts for under-allocation or unclamped writes. The CONNECT file UDF privilege gap in #1052 is a related access-control angle.

  10. 10

    Look for more unbounded recursion in parsers

    DoS Read the lesson

    Reports #1040 and #22456 show geometry parsers recursing without a depth limit. Test the other recursive parsers in the server, such as JSON functions, XML handling and nested subquery or view expansion, for missing stack-overrun checks. The fix for one parser may not have been applied to its siblings.

  11. 11

    Test other cursor and array growth paths for use-after-free

    Memory corruption Read the lesson

    Reports #1059 and #1058 show a growable cursor array leaving dangling pointers. Exercise other dynamic arrays that hold pointers into themselves, such as prepared-statement parameter arrays, HANDLER cursors and the MEMORY engine index in #22415, by forcing reallocation during execution. The stale key version in #22415 is the same class in a different subsystem.

  12. 12

    Check other archive and file extraction paths for traversal

    Path traversal Read the lesson

    Report #1068 found mbstream only blocked absolute paths. Test the other extraction and file-writing paths, such as mariadb-dump restore, LOAD DATA and the DATA DIRECTORY handling in #1053, with parent-directory segments and symlinks. The command-line client traversal in #16439 is a related client-side variant.

  13. 13

    Probe the web estate for the same CRLF and disclosure classes

    Info disclosure Read the lesson

    The mariadb.org reports include several CRLF injections (#14915, #14927, #14942) and exposed files (#17993, #16101). Re-test redirect and header-building parameters across the current site and subdomains for CRLF, and check for exposed repository metadata, debug logs and backup paths. These classes recurred over multiple years, so the current estate is worth a fresh pass.

  14. 14

    Test the WordPress and third-party web surfaces for known issues

    Misconfiguration Read the lesson

    Reports #16282 and #14653 show WordPress endpoints left reachable and unthrottled. Check the current mariadb.org WordPress install for enabled XML-RPC, script loader abuse and plugin-specific issues, and check the Grafana and Jira instances referenced in #18846 and #18669 for current versions and exposure. These are recurring web findings on this program.

Public bounties only; many reports disclose without the amount.

ClassReportsPaidMedianHighestIn all
Memory corruption lesson 17 0 – – $0
DoS lesson 10 0 – – $0
Access control lesson 9 0 – – $0
SQL injection lesson 5 0 – – $0
Path traversal lesson 5 0 – – $0
Crypto lesson 4 0 – – $0
Info disclosure lesson 4 0 – – $0
Smuggling / CRLF lesson 3 0 – – $0
RCE lesson 2 0 – – $0
Misconfiguration lesson 1 0 – – $0
Race condition lesson 1 0 – – $0

What was fixed

All reports

The newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.