Upgrading deployed code to latest release...

This is a forum to suggest new features for mojoPortal. 

This thread is closed to new posts. You must sign in to post in the forums.
1/31/2012 2:51:10 PM
Gravatar
Total Posts 165

Upgrading deployed code to latest release...

Hey Joe,

Wanted to ask about a feature request when it comes to upgrading deployed code to the latest release of mojoPortal.

I use a product called 'SlideShowPro', which is a gallery system (PHP based), when a new release is available and when the admin logins, it shows that there is a updated version available.  Then it supplies an update system (where it does the download and updates the system for you).

It would really be night if this could be something mojoPortal could have.

Thanks,

Mark Schlaudraff

1/31/2012 2:55:37 PM
Gravatar
Total Posts 18439

Re: Upgrading deployed code to latest release...

Hi Mark,

I've considered having a notification that an upgrade is available and may do that at some point. But as far as automatically upgrading, there are security reasons we will never do that are explained in the document Why Custom Features Should be Installed By FTP.

Best,

Joe

1/31/2012 3:04:33 PM
Gravatar
Total Posts 165

Re: Upgrading deployed code to latest release...

I did not think about the Custom Features... 

1/31/2012 3:19:15 PM
Gravatar
Total Posts 18439

Re: Upgrading deployed code to latest release...

The principles in that article apply also to mojoPortal code and included features, the web app itself should NOT be able to write to the folders where code is allowed to execute, otherwise all someone has to do is find a way to upload an executable file such as a .aspx page with malicious code and they can own your site. Thats is why we want only the /Data and /App_Data folders to be writable and we also want to mark those folders as not executable so that even if someone managed to upload a malicious .aspx file it would not run from the folder where they can upload.

And its no different with php, if a person who was not intended to be able to, managed to upload a malicious php file they can own a php site too if its uploaded to a folder that allows script execution, this is just basic web security. Some developers don't give enough thought to security and they choose to make things convenient at the expense of security. When I see a web app that can upgrade itself its a red flag to me.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.