Cockpit before 0.6.1 allows an attacker to inject custom PHP code and achieve Remote Command Execution via registerCriteriaFunction in lib/MongoLite/Database.php, as demonstrated by values in JSON data to the /auth/check or /auth/requestreset URI.
The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
Link | Tags |
---|---|
https://github.com/agentejo/cockpit/releases/tag/0.6.1 | third party advisory release notes |
https://github.com/agentejo/cockpit/commits/next/lib/MongoLite/Database.php | third party advisory |
https://www.exploit-db.com/exploits/49390 | third party advisory vdb entry exploit |