Re: Execute Applescript

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 10724
interpreted = N
texte = >This, however, brings up a security issue. If we use WebCat2 to build a >guestbook or anything that use database, dybamic data publishing, would >it be possible for someone just type in the > >[applescript] [/applescript] tag and execute an Applescript on the >server side?We are considering a global preference thay disables the tag entirely, but in the meantime you should know we have spent a great deal of time doing our best to make sure that remote users cannot execute AppleScripts unless that have the authority to create files on your web server (which usually means they can do a lot worse things that just execute an AppleScript).Here's how it works:1) There is no such thing as a $WriteFile command. So no one can create a text file on your server that contains [AppleScript] tags. The only way [WriteFile] works is if you, the webmaster, create a template containing the tag.2) Typing WebDNA tags into a database field: when database fields are displayed on a page, they are not executed as WebDNA. So no one can type some WebDNA [AppleScript] tags into your guestbook and have them executed by simply viewing the guestbook. Yes, by surrounding the [fieldname] with [Interpret]..[/Interpret] tags you can have the WebDNA executed, but again you control whether or not that is put in the template.3) Password protection: If you desire to have pages with 'dangerous' WebDNA on them, it is a simple matter to [protect admin] them so that the WebDNA does not get executed unless you have the password.4) SiteEdit Pro: Yes, you can do lots of damage with SiteEdit Pro. But that's what passwords are for -- no different than Unix.5) Tracking: If you do have pages with dangerous WebDNA on them, it is simple to put tracking tags in them that also track username/password, time of day, ip address, etc. of each person who accesses that page. Perhaps you can use this information (or fear of it) to catch bad guys.5) Multihoming and multiple administrators: You should be concerned when you have a Mac set up with more than one person allowed to edit HTML pages. For instance, in a multivendor mall situation, you may have more than one Store Owner who has rights to change their WebCatalog templates. Those people can write bad AppleScripts that can do anything to your entire Mac, including erasing the hard drive. This is a limitation of MacOS. Sorry.PLEASE notify us immediately of any holes or concerns you have with security. We intend to plug any holes that we or you find.Grant Hulbert, V.P. Engineering | Tools for WebWarriors Pacific Coast Software | WebCatalog, WebCommerce Solution 11770 Bernardo Plaza Court, #462 | SiteEdit, SiteCheck, PhotoMaster San Diego, CA 92128 | 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Associated Messages, from the most recent to the oldest:

    
  1. Re: Execute Applescript (Kenneth Grome 1997)
  2. Re: Execute Applescript (Grant Hulbert 1997)
  3. Execute Applescript (Nelson Chen 1997)
>This, however, brings up a security issue. If we use WebCat2 to build a >guestbook or anything that use database, dybamic data publishing, would >it be possible for someone just type in the > >[applescript] [/applescript] tag and execute an Applescript on the >server side?We are considering a global preference thay disables the tag entirely, but in the meantime you should know we have spent a great deal of time doing our best to make sure that remote users cannot execute AppleScripts unless that have the authority to create files on your web server (which usually means they can do a lot worse things that just execute an AppleScript).Here's how it works:1) There is no such thing as a $WriteFile command. So no one can create a text file on your server that contains [AppleScript] tags. The only way [writefile] works is if you, the webmaster, create a template containing the tag.2) Typing WebDNA tags into a database field: when database fields are displayed on a page, they are not executed as WebDNA. So no one can type some WebDNA [AppleScript] tags into your guestbook and have them executed by simply viewing the guestbook. Yes, by surrounding the [fieldname] with [interpret]..[/Interpret] tags you can have the WebDNA executed, but again you control whether or not that is put in the template.3) Password protection: If you desire to have pages with 'dangerous' WebDNA on them, it is a simple matter to [protect admin] them so that the WebDNA does not get executed unless you have the password.4) SiteEdit Pro: Yes, you can do lots of damage with SiteEdit Pro. But that's what passwords are for -- no different than Unix.5) Tracking: If you do have pages with dangerous WebDNA on them, it is simple to put tracking tags in them that also track username/password, time of day, ip address, etc. of each person who accesses that page. Perhaps you can use this information (or fear of it) to catch bad guys.5) Multihoming and multiple administrators: You should be concerned when you have a Mac set up with more than one person allowed to edit HTML pages. For instance, in a multivendor mall situation, you may have more than one Store Owner who has rights to change their WebCatalog templates. Those people can write bad AppleScripts that can do anything to your entire Mac, including erasing the hard drive. This is a limitation of MacOS. Sorry.PLEASE notify us immediately of any holes or concerns you have with security. We intend to plug any holes that we or you find.Grant Hulbert, V.P. Engineering | Tools for WebWarriors Pacific Coast Software | WebCatalog, WebCommerce Solution 11770 Bernardo Plaza Court, #462 | SiteEdit, SiteCheck, PhotoMaster San Diego, CA 92128 | 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Grant Hulbert

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

WebCatalog NT (1996) Re:Emailer Set Up (1997) Re:no [search] with NT (1997) Sorry I didn't pay attention-but ??? (1997) two unique banners on one page (1997) Calendar (1997) problem with [Format Days_To_Date] (2000) Showing unopened cart (1997) Case sensitivity and [showif] (1999) Mac OS X ODBC (2002) rn doesn't work on date fields (1998) WebCatalog2 Feature Feedback (1996) [append] problem (1997) Bug or syntax error on my part? (1997) all db's in one folder and protected (1998) WebCommerce: Folder organization ? (1997) WebCat2 Append problem (B14Macacgi) (1997) [OT] Getting a domain listening on port 443 and port80? (2003) ReadDateFormat (1998) RE: Help name our technology! (1997)