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
Which language does Ruby on Rails use?
- Java
- C#
- Ruby
- PHP
Show answer
Answer: C. Ruby
Rails is a web framework written in and for Ruby. Java, C# and PHP have their own frameworks.
Which items are common flaw classes in framework-based web applications?
- Insecure deserialisation of client data
- Exposed debug or admin consoles
- Short TCP keep-alive timeouts
- Use of a large monitor by developers
- 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: 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.

More CPSA topics in this module
- Web server operation, virtual hosting and proxies
- IIS and Apache and their typical flaws
- Tiered web architectures
- HTTP methods and response codes
- HTTPS, SOAP and security-related headers
- HTML and XML
- Server-side and client-side web languages
- Server extension interfaces
- Thin and thick web clients, applets and decompilation