Courses3 levels
Level 1 · Foundations11 courses
Level 2 · Core5 courses
Level 3 · Advanced5 courses
Labs8 topics
Library Practice exams AI Range Pricing Start free

KaliRange / Foundations

Web applications and APIs

How a web application works, how it fails, and how to fix an API and prove the fix.

12 lessons · about 9 hours · every command tested

How to use the lab files

The zip keeps the files of each lesson apart, and the lessons work in one flat folder. After you unzip it, sh kr-lab.sh LESSON FOLDER builds that folder as it stands after a lesson, for example sh kr-lab.sh 00-set-up-your-lab ~/krlab/web-apis.

You will build

Build a secure notes API and prove every control

You need

A computer with Linux, macOS, or Windows with WSL. No GPU, no cloud account and no paid tool.

Next course

Security fundamentals

  1. 00Set up and check your web labCreate the folder ~/krlab/web-apis for the whole courseSet-up15 min
  2. 01Build a tiny web server and call itName the parts of a web application and say what each one doesBuild30 min
  3. 02Build a notes API and call it with curlMap resources and methods to the right URL, status code and content typeBuild40 min
  4. 03Log in with a session cookie and an API keyBuild a login that issues a random session cookie with safe flags40 min
  5. 04Find and fix a broken access checkExplain the difference between authentication and authorisation35 min
  6. 05Break and fix a query and a page with injectionExplain why mixing data with code causes injection35 min
  7. 06Stop a server from fetching what it should notShow how a "fetch this URL" feature reaches an internal service40 min
  8. 07Keep secrets out of code and limit what a client can cost youLoad keys from the environment and a .env file that version control ignores40 min
  9. 08Fix token, origin and cross-site flaws and test each fixRead a bearer token and check a signed token for its algorithm, signature and expiry50 min
  10. 09Stop shell injection and mass assignment and test each fixRun a program from a server without a shell and allow only a safe name pattern35 min
  11. 10Build a secure notes API and prove every controlCombine authentication, an owner check, validation, limits and safe logging in one programBuild50 min
  12. 11Review and fix a colleague's APIFind planted flaws in an unfamiliar API by reading its code and by sending requestsTest90 min

More practice

Labs and workbooks on the same skills, from the practice library. Do the lessons first.

Work roles

Work roles this course supports

The course helps you to prepare for these roles of the NICE Workforce Framework for Cybersecurity (NIST SP 800-181 Rev. 1). No single course covers a whole role, and KaliRange is not a certification body.

Role names and codes are NIST's (Components 2.2.0, 2026-04-28); the choice of roles is our own reading of the role descriptions. The NICE Framework at NIST has the full description of each role.