Skip to content
This repository has been archived by the owner on Nov 10, 2019. It is now read-only.

Commit

Permalink
fix check_request() bypass in places using get_uids() [CVE-2018-9846]
Browse files Browse the repository at this point in the history
  • Loading branch information
johndoh committed Apr 18, 2018
1 parent 31a703f commit 30f0dba
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Roundcube Webmail MarkAsJunk2
=============================

Version 1.10.1 (2018-04-17, rc-1.1.11)
=================================================
* Fix check_request() bypass in places using get_uids() [CVE-2018-9846]

Version 1.10 (2017-01-02, rc-1.1)
=================================================
* Add JS event markasjunk2-update to allow other plugins to influence the spam/ham options show
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"homepage": "http://github.com/JohnDoh/Roundcube-Plugin-Mark-as-Junk-2/",
"license": "GPL-3.0",
"type": "roundcube-plugin",
"version": "1.10",
"version": "1.10.1",
"authors": [
{
"name": "Philip Weir",
Expand Down
3 changes: 2 additions & 1 deletion markasjunk2.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@ function mark_message()

$is_spam = rcube::get_instance()->action == 'plugin.markasjunk2.junk' ? true : false;
$multi_folder = $_POST['_multifolder'] == 'true' ? true : false;
$messageset = rcmail::get_uids();
$uids = rcube_utils::get_input_value('_uid', rcube_utils::INPUT_POST);
$mbox_name = rcube_utils::get_input_value('_mbox', rcube_utils::INPUT_POST);
$messageset = !empty($uids) ? rcmail::get_uids($uids, $mbox_name) : array();
$dest_mbox = $is_spam ? $this->spam_mbox : $this->ham_mbox;
$result = $is_spam ? $this->_spam($messageset, $dest_mbox) : $this->_ham($messageset, $dest_mbox);

Expand Down

0 comments on commit 30f0dba

Please sign in to comment.