Top 10 things to do to secure a web application.

By | May 4, 2017

When starting a new project, it is best to do the following security related items as soon as possible, otherwise it will be terribly difficult to add at a later stage.

  1. Disable insecure ciphers – enable TLS 1.2
  2. Disable unsecured HTTP bindings. Only transact with HTTPS.
  3. Enable HSTS as soon as possible.
  4. Integrate with a commercial STS that has protection against brute force attacks. Do not store the user information yourself unless you know what you are doing. If you are doing the user management yourself there is so much more to worry about. Password hashing, account locking, forget password mechanism…
  5. Enabled secure cookies. Do not allow cookies to be transmitted over a insecure connection.
  6. Do not store sensitive information if possible. If you do make sure to encrypt or hash all the data with a industry standard method. See GDPR
  7. Disable unauthenticated access to all resources within the application. No exception. Exception means it goes into a different project.
  8. Implement a tamper proof URL rewrite module.
  9. Use a dedicated data layer or tier that implements protection against SQL injection.
  10. Implement reference tokens and a security token cache to detect token replays.
    Sneaking in 2 more..
  11. Implement short session timeouts to protect against session hijacking.
  12. Do not disclose technical information of the application.
    Add static custom error pages. Do not expose stack traces. Static – cause even a dynamic error page can have an error…
    – Disable metadata output of services
    Remove headers that identify the host type.
0 0 votes
Article Rating
Notify of

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Inline Feedbacks
View all comments