oss-sec mailing list archives

CVE request for Moodlee MDL-48980 Security: Always clean the result from min_get_slash_argument


From: Kurt Seifried <kseifried () redhat com>
Date: Wed, 04 Feb 2015 15:18:47 -0700

I don't think this has a CVE yet

http://git.moodle.org/gw?p=moodle.git;a=commit;h=af9a7937cc085f96bdbc4724cadec6eeae0242fc

MDL-48980 Security: Always clean the result from min_get_slash_argument

The result from this function is used in send_file calls and if unclean
(windows dir separators, or .. path components) it could expose
sensitive files (e.g. .php files). Now we always clean the result from
this function even if it means double cleaning.

I also fixed the unit test for this function and added a new test for
this cleaning.

I also updated the comments to point to get_file_argument as the full
version of min_get_slash_argument.

-- 
Kurt Seifried -- Red Hat -- Product Security -- Cloud
PGP A90B F995 7350 148F 66BF 7554 160D 4553 5E26 7993

Attachment: signature.asc
Description: OpenPGP digital signature


Current thread: