Book Image

Mastering Web Application Development with Express

By : Alexandru Vladutu
Book Image

Mastering Web Application Development with Express

By: Alexandru Vladutu

Overview of this book

Table of Contents (18 chapters)
Mastering Web Application Development with Express
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Running Express applications on privileged ports


The root user on Unix systems is a special user who has the ability to make system-wide changes and practically has full control over the machine. If we run an Express application as the root, and it has a vulnerability that is exploited by a hacker, then the hacker can cause a lot of damage, such as formatting the disk for instance.

To bind a web application to a port below 1024, (such as ports 80 or 443), root permissions are needed, but there are some workarounds to the problem, which are as follows: