components/cups/patches/str4356.patch
author Drew Fisher <drew.fisher@oracle.com>
Fri, 16 Sep 2016 07:20:38 -0700
changeset 6917 6936cd289acf
parent 2108 6145b31310ca
permissions -rw-r--r--
24674278 swift puppet module still defines a File dependency with no file entries

See : http://www.cups.org/str.php?L4356 for details.

Index: scheduler/client.c
===================================================================
--- scheduler/client.c
+++ scheduler/client.c
@@ -4251,6 +4251,14 @@
     return (0);
 
  /*
+  * Check for "<" or quotes in the path and reject since this is probably
+  * someone trying to inject HTML...
+  */
+
+  if (strchr(path, '<') != NULL || strchr(path, '\"') != NULL || strchr(path, '\'') != NULL)
+    return (0);
+
+ /*
   * Check for "/.." in the path...
   */