Expand my Community achievements bar.

SOLVED

Sling.servlet.paths and Dispatcher Security concerns

Avatar

Level 10

Hello,

I am wondering if someone could point me in the right direction wrt the usage of sling.servlet.paths , via dispatcher.

I have a form post to a servlet and in the servlet i have the sling.servlet.paths = /apps/../../ . now via dispatcher i am forced to allow the POST to the path apps/../..

Is there any security concern here providing the below rule.

/0208 { /type "allow" /glob "POST /apps/test/community/test*" }, 

Regards,

1 Accepted Solution

Avatar

Correct answer by
Employee

Best practice is to use /bin/path/to/servlet. 

View solution in original post

2 Replies

Avatar

Correct answer by
Employee

Best practice is to use /bin/path/to/servlet. 

Avatar

Level 10

kaushal_mall wrote...

Best practice is to use /bin/path/to/servlet. 

 

Thank you Kaushal