Bitzu

CPSA ยท Web servers, architecture and protocols

Application servers and frameworks

.NET, J2EE, ColdFusion, Ruby on Rails and AJAX: what they are and their common flaw classes.

Key points

  • .NET: Microsoft (ASP.NET on IIS and other hosts).
  • J2EE: now Jakarta EE; servlets, JSP, EJB on servers like Tomcat.
  • ColdFusion: legacy commercial CFML server. Ruby on Rails: Ruby MVC framework.
  • AJAX: JS fetches data in the background, updates part of a page.
  • Flaws: injection, insecure deserialisation, mass assignment (binding all request fields), exposed admin or debug consoles, tampered ViewState, unchecked AJAX endpoints.

Practice questions

Single choice

Which language does Ruby on Rails use?

  1. Java
  2. C#
  3. Ruby
  4. PHP
Show answer

Answer: C. Ruby

Rails is a web framework written in and for Ruby. Java, C# and PHP have their own frameworks.

Select all that apply

Which items are common flaw classes in framework-based web applications?

  1. Insecure deserialisation of client data
  2. Exposed debug or admin consoles
  3. Short TCP keep-alive timeouts
  4. Use of a large monitor by developers
  5. Use of version control
Show answer

Answer: A. Insecure deserialisation of client data, B. Exposed debug or admin consoles

Insecure deserialisation and exposed debug or admin consoles recur across stacks. Short TCP timeouts and large monitors are not application flaw classes.

True or false

True or false: an AJAX endpoint called only by the site's own JavaScript does not need server-side authorisation checks.

Show answer

Answer: False

False. Anyone can call the endpoint directly with a proxy or script, so the server must check authentication and authorisation on every request.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More CPSA topics in this module