We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 342ca3e commit 43d0dedCopy full SHA for 43d0ded
src/java/fr/paris/lutece/portal/web/style/ModesJspBean.java
@@ -45,6 +45,7 @@
45
import fr.paris.lutece.portal.web.constants.Messages;
46
import fr.paris.lutece.portal.web.constants.Parameters;
47
import fr.paris.lutece.util.html.HtmlTemplate;
48
+import fr.paris.lutece.util.http.SecurityUtil;
49
50
import java.io.File;
51
@@ -152,6 +153,11 @@ public String doCreateMode( HttpServletRequest request ) throws AccessDeniedExce
152
153
strPath += File.separator;
154
}
155
156
+ if ( SecurityUtil.containsPathManipulationChars(request, strPath) )
157
+ {
158
+ throw new AccessDeniedException( "Invalid path" );
159
+ }
160
+
161
File dirPath = new File( AppPathService.getPath( PROPERTY_PATH_XSL ) + strPath );
162
163
if ( dirPath.exists( ) )
0 commit comments