Author Topic: Possible vulnerability Injected into the "_action".  (Read 2999 times)

Offline betoxsido

  • Newbie
  • *
  • Posts: 1
Possible vulnerability Injected into the "_action".
« on: January 27, 2017, 03:13:58 AM »
Hi all,

After performing a vulnerability scan, has been detected a possible vulnerability "spider-code-injection" in the url login:

Injected into the "_action" form parameter (Using method POST) on https://xxxx.xxxx.xxxx.xxxx/?_task=login:

41: @licend The above is the entire license notice
42: for the JavaScript code in this page.
43: */
44: var rcmail = new rcube_webmail();
45: ...action":"print838582532838582532","comm_path":".\/?_task=login","co...

-------------------------------------------------------------------------------------------------------------------
Injected into the "_action" form parameter (Using method GET) on https://xxxx.xxxx.xxxx.xxxx/?_task=login:

41: @licend The above is the entire license notice
42: for the JavaScript code in this page.
43: */
44: var rcmail = new rcube_webmail();
45: ...action":"print838582532838582532","comm_path":".\/?_task=login","co...


Is there a risk for an injection of commands?? How can i protect the information coming to the server?

Thanks! King regards.


Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,850
Re: Possible vulnerability Injected into the "_action".
« Reply #1 on: January 28, 2017, 04:01:05 AM »
I'm interested what about that you think is vulnerable.

The input is sanitised, so you cannot insert actual code and invalid actions are ignored. There is CSRF protection built in to Roundcube but if you want you can enable secure URLs for additional security see, https://github.com/roundcube/roundcubemail/blob/master/config/defaults.inc.php#L627

I suppose because the value is put into rcmai.env.action there could be a way to get roundcube actions executed from inside the application - like a button was clicked or something else done in Roundcube which used the value from rcmail.env.action but there is no way to specify the particular parameters for that action and so It would fail.
« Last Edit: January 28, 2017, 04:39:06 AM by JohnDoh »
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦