The Dangers of Smarty PHP Tags

General project discussion. NOT for help questions.
Post Reply
User avatar
CWebguy
Forum Members
Forum Members
Posts: 139
Joined: Thu Jul 24, 2008 3:31 am

The Dangers of Smarty PHP Tags

Post by CWebguy »

Can someone explain to me the dangers of smarty PHP tags?

thanks.
CMSMS Made
viebig

Re: The Dangers of Smarty PHP Tags

Post by viebig »

an editor could add malicious php code
User avatar
CWebguy
Forum Members
Forum Members
Posts: 139
Joined: Thu Jul 24, 2008 3:31 am

Re: The Dangers of Smarty PHP Tags

Post by CWebguy »

If people don't have access to the site, as far as editors?  Any danger then?

Thanks.
CMSMS Made
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

Re: The Dangers of Smarty PHP Tags

Post by tyman00 »

No if you are the only one that will modify content or if you trust those with access to the admin panel it is safe. May I suggest that you use a UDT instead of the smarty PHP tags? If you ever added editors you can restrict access to that, but you cannot prevent anyone from using malicious PHP if you turn those tags on.
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
User avatar
CWebguy
Forum Members
Forum Members
Posts: 139
Joined: Thu Jul 24, 2008 3:31 am

Re: The Dangers of Smarty PHP Tags

Post by CWebguy »

How about through the search bar?  Any danger there?

Blessings.
CMSMS Made
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

Re: The Dangers of Smarty PHP Tags

Post by tyman00 »

As far as I know it should not be an issue on the front end. The PHP tags are used in the WYSIWYG in the admin area.
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
User avatar
CWebguy
Forum Members
Forum Members
Posts: 139
Joined: Thu Jul 24, 2008 3:31 am

Re: The Dangers of Smarty PHP Tags

Post by CWebguy »

cool, gotcha, thanks.
CMSMS Made
Post Reply

Return to “General Discussion”