[Commotion-admin] [luci-commotion] [CLOSED] Stored XSS in local application URL (High) (#330)

oti-tech notifications at github.com
Wed Jun 18 13:49:16 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:42 GMT_
_Originally opened as https://github.com/opentechinstitute/luci-commotion-apps/issues/12_

----

The Commotion node web interface allows anonymous (unauthenticated) users of the node to add local application URLs using Application Portal. Before checking the application URL passed in ipaddr parameter is sanitized as described in issue #10, namely the protocol and path parts are stripped out from the URL to perform port scan. When the port scan is successful, application is added to the pool and is later visible to other node users. Optionally administrator can approve the application on admin/commotion/apps page.

It is possible to inject javascript code as an application URL, such that it will still pass the port scanning check.

This can be used e.g. to trick Node administrator into clicking on application link and taking over CSRF token and session ID to hijack administrative session. As original form to add application does not require authentication or Anti CSRF tokens, the attack can be effectively performed from the Internet by enticing Commotion node
users to visit a certain malicious page.

Originally reported in WRT-01-007

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



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


More information about the Commotion-admin mailing list