dashboard/pages/types [Unknown column 'Array' in 'where clause'] disclosure.
A request parameter was passed as an array instead of a scalar, causing the application to build a database query with the literal string 'Array' in the WHERE clause. This produced a database error that disclosed the full SQL query, but the reporter states it is not SQL injection.
Originally disclosed on HackerOne
- Triaged in 3 days
- Fixed in 2 months
- Disclosed after 2 months
Hi,
When I go to /index.php/dashboard/pages/types?ctID[]=4&task=edit I get thrown the following :
mysqlt error: [1054: Unknown column 'Array' in 'where clause'] in EXECUTE("SELECT PageTypes.ctID, ComposerTypes.ctID as ctIDc, ctHandle, ctIsInternal, ctName, ctIcon, pkgID, ctComposerPublishPageMethod, ctComposerPublishPageTypeID, ctComposerPublishPageParentID from PageTypes left join ComposerTypes on PageTypes.ctID = ComposerTypes.ctID where PageTypes.ctID = Array")
It's not a SQL Injection but it also shouldn't happen..
Best regards,
Olivier Beg
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 application did not validate that the ctID parameter was a scalar value before using it in a database query, so an array was converted to the string 'Array'.
What the attacker needed
Access to the dashboard pages types endpoint
How it was found
- Send a request to the dashboard pages types endpoint with ctID supplied as an array and task set to edit.
- Observe the database error containing the full SQL query.
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.
When a web page expects a single value but receives a list (an array), some programming languages turn that list into the word 'Array' when used in a database query. Here that word ended up inside a database query, so the database rejected it and the site showed the full query in an error message. This is an information leak, not a way to run attacker-controlled database commands.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.