Jann Horn d0fb7bb687 Fix r_sandbox_check_path – there were ways to perform directory traversal.
- The function failed to catch the case that the path ends with "..",
   allowing the contents of the directory one path component above the
   cwd to be listed. This is probably not very interesting.
 - The function did not check for ".." components in the path if it
   starts with R2_WWWROOT, leading to full directory traversal (example:
   /usr/local/share/radare2/0.9.8.git/www/../../../../../../etc/passwd
 - Use strncmp instead of memcmp
 - Handle relative webroot paths properly
 - Check for empty R2_WWWROOT
2014-03-27 00:32:43 +01:00
..
2014-01-23 04:00:01 +01:00
2014-02-20 22:16:23 +01:00
2012-10-20 00:31:18 +02:00
2014-02-26 19:42:56 +01:00
2014-03-08 11:56:15 +01:00
2013-07-15 02:51:55 +02:00
2014-03-16 00:16:43 +01:00
2013-11-19 01:51:40 +01:00
2014-03-01 23:17:52 +01:00
2013-11-04 04:50:37 +01:00
2013-07-15 02:51:55 +02:00
2014-03-26 01:34:32 +01:00
2014-03-08 11:56:15 +01:00
2014-03-08 11:56:15 +01:00
2014-03-16 00:16:43 +01:00
2014-03-08 11:56:15 +01:00
2014-02-08 14:08:07 +04:00
2013-09-14 14:04:08 +02:00