[Commotion-admin] [luci-commotion] [CLOSED] Remote code execution in commotion debug helper (Medium) (#218)

oti-tech notifications at github.com
Wed Jun 18 13:37:42 EDT 2014


<a href="https://github.com/areynold"><img src="https://avatars.githubusercontent.com/u/755312?" align="left" width="96" height="96" hspace="10"></img></a> **Issue by [areynold](https://github.com/areynold)**
_Monday Sep 09, 2013 at 15:25 GMT_
_Originally opened as https://github.com/opentechinstitute/commotion-debug-helper/issues/2_

----

Parameters in form displayed on Commotion Debug Helper page are not sanitized when passed to OS command execution, which allows for arbitrary command  execution. However, page is accessible to node admin only and requires the presence of session token, so the impact of this vulnerability is limited.

https://github.com/opentechinstitute/commotion-bug-info/blob/3fb4acddcedaacd8b20768b93a1eef1f5c034f8f/luasrc/controller/debugger.lua#L31-L43

This vulnerability allows for OS code execution by modifying name,
contact, whatYouDo, behaviorExpected and badBehavior parameters.
Similar vulnerability exists within buginfo parameter value which is
being passed to another OS command:

https://github.com/opentechinstitute/commotion-bug-info/blob/3fb4acddcedaacd8b20768b93a1eef1f5c034f8f/luasrc/controller/debugger.lua#L45-L55

Originally reported as WRT-01-004

<!---
@huboard:{"order":7.0}
-->



---
Reply to this email directly or view it on GitHub:
https://github.com/opentechinstitute/luci-commotion/issues/218
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.chambana.net/pipermail/commotion-admin/attachments/20140618/273f34a5/attachment.html>


More information about the Commotion-admin mailing list