HackPath
BootcampCoursesRoadmapPracticePricing
Log inStart learning
Back to courses

Course

Foundations of Information Security

0%
Introduction2 lessons
01The Architecture of Information Security
20m
02Fundamental Security Principles
25m
InfoSec Domains8 lessons
03Network Security Fundamentals
25m
04Application Security Principles
25m
05Operational Security (OpSec) Concepts
25m
06Business Continuity and Disaster Recovery
25m
07Cloud Security Essentials
25m
08Physical Security Mechanisms
25m
09Mobile Device Security Foundations
25m
10Security in Internet of Things (IoT) Environments
25m
Threats5 lessons
11Distributed Denial-of-Service (DDoS) Attacks
25m
12Ransomware Threat Landscape
25m
13Social Engineering Tactics
25m
14Internal Threat Actors
25m
15Advanced Persistent Threat (APT) Campaigns
25m
Cybersecurity Teams4 lessons
16Adversaries and Threat Profiles
25m
17Red Team Operations & Offensive Security
25m
18Blue Team Defensive Operations
25m
19Purple Team Collaboration Framework
25m
Lesson 04·4 / 19·25 min

Application Security Principles

Review application permissions, data handling and development evidence without confusing a valid input, a clean report or a planned fix with verified security.

EnglishFrançaisDeutschالعربيةहिन्दी

Quick recap.

In IS-N03, the filter allowed X1 but the application refused the visitor's class list. An alert did not prove an intrusion. A declared VPN profile did not prove an active connection.

We keep the school service. If room B is a valid value, may a read-only account save it? I ask you to use the supplied records and paper or a notes app. No programming experience is needed.

Learning objectives.

Distinguish valid data from permission, explain different protections for database operations and browser output, compare testing methods, and write IS-A04-R with sources, unknowns and proposed owners.

Follow one request.

An application is software performing a task, here reading or changing a class list. A browser displays pages and can run their programs. A server handles a request, a message asking it to act. A session associates interactions with a continuing application context, often a signed-in account.

An input is received data, such as room B. An output is produced data, such as the displayed room. A database organises stored information for retrieval or change. This is an explanatory model, not a measured route:

Browser request → server permission and data checks → database operation → response displayed by the browser.

Application Security (AppSec) reduces risks throughout software design, development, release and use. It supports confidentiality, integrity and availability without guaranteeing them. IS-A04 is a new fictional teaching dossier, not real measurements.

In the dossier, source code means program text; a build is a prepared software version. Static analysis examines program artefacts without executing the application. A finding is a reported issue to assess. These terms help us read T1 without calling it a test of every running feature.

SourceSupplied information
B1, school requirementsSCHOOL-WEB has public pages and a restricted class list. CLASS-READ may read but not change; CLASS-EDIT may read and change; visitors may do neither. The room field accepts exactly A or B.
E1, application record at 11:00A CLASS-READ session successfully reads the list. No authentication method is supplied.
E2, application record at 11:01CLASS-READ requests a room change from A to B. It is refused; no saved change is reported.
E3, application record at 11:02CLASS-EDIT requests the same room change from A to B. It is accepted. The actual classroom assignment is not supplied.
C1, developer statement“We validate inputs.” No code, validation rules or database-query implementation is provided.
T1, report at 12:10One static-analysis run reports no findings for selected form source files in build v1. Rules, other-file coverage and runtime behaviour are not supplied.
M1, plan at 12:15A session-handling correction is planned for build v2. No deployed version or completed retest is supplied.

Read E2 as account, action, value and result. B satisfies the field rule; CLASS-READ lacks edit permission. The refusal matches B1 for this request. E3 does not prove that B is the factually correct room.

An observation describes a supplied record. An interpretation relates it to B1. “Every route applies the same checks” is an unverified hypothesis. C1 is a statement; M1 is a plan. Implementation elsewhere remains unknown.

Separate identity, permission and valid data.

Authentication checks evidence associated with an account. Authorisation decides its permission for an action on a resource. E1 reveals neither a password nor multi-factor authentication (MFA), which uses distinct factor types such as knowledge and possession.

The server should check each requested action and resource. Hiding an edit button does not enforce permission. Least privilege grants only needed access; deny an action without applicable permission. E2 does not prove every route implements these checks.

Session management maintains and ends the association between requests and a session. A session token represents that association; a cookie is one browser mechanism for storing and sending a value. Protect tokens and define expiry and logout. None of these settings or tests is supplied. M1 proves no repair.

Input validation checks data against requirements, on the server even if the browser also checks it. Under B1, B passes and C fails. Validation does not grant edit permission, and a valid value may still be factually wrong.

Keep data separate from instructions.

SQL, Structured Query Language, expresses database operations. SQL injection occurs when untrusted data changes intended SQL instructions. A parameterised query keeps fixed instructions separate from values supplied through the database interface. It protects bound values, without granting permission or making arbitrary dynamic SQL safe. C1 does not establish this protection. See OWASP SQL guidance.

Cross-Site Scripting (XSS) involves untrusted content becoming executable browser content. HTML, HyperText Markup Language, describes page structure. A plain-text room label should remain text. Output encoding handles data for its destination context: page text, a link and program text need different treatment. No encoder protects every context.

When a feature deliberately permits formatted HTML, sanitisation restricts unsafe constructs using a maintained library. It differs from plain-text display. Neither replaces authorisation. See OWASP output guidance. No SQL injection or XSS is demonstrated in IS-A04.

A buffer is reserved memory; a buffer overflow writes beyond its boundary. Memory-safe facilities and correct bounds handling address this separate problem. A room allowlist is not universal memory protection. No overflow is recorded here.

Include the supporting environment.

TLS, Transport Layer Security, can protect exchanges in transit when correctly configured and validated; it does not decide edit permission. Storage needs appropriate access controls and, where needed, encryption with protected keys. A secret, such as a database credential, enables sensitive access; avoid exposing it in code or logs.

A dependency is reused software. A patch changes software to correct a problem. Inventory versions, assess relevant fixes, test changes and prepare recovery. A patch announcement proves neither exploitation nor repair here. Server and database configuration also need review.

Follow work through the lifecycle.

Security by Design considers protection from initial design. Threat modelling records assets, possible unwanted events, assumptions and proposed controls. Here, “a read-only account changes the list” is an event to prevent, not an event established by E2.

These three groups organise work; feedback may return to design.

WorkProposed school activityEvidence to request
Design and developmentAgree B1; review permissions and data handling.Reviewed requirements and implementation for the selected build.
Testing and releaseCheck allowed and refused actions, assess findings, correct and retest; review settings.Scope, build, expected outcomes and actual results.
Monitoring and maintenanceReview selected events, dependencies, fixes and recovery arrangements.Change record, deployed build and completed checks. M1 is insufficient.

Monitoring reviews selected events; it is not necessarily scanning. A log records events; an alert highlights selected conditions. Proposed logging of edit refusals can support investigation without proving an attack. Avoid logging passwords, session tokens or unnecessary class data.

Choose a test for a question.

Source code is program text. A build is a prepared software version. A finding is a reported issue whose validity and impact need assessment.

MethodSchool exampleLimit
Static analysisExamine source or program artefacts without executing the application; T1 selects form files.No findings does not prove no flaws.
Dynamic analysisObserve a running test instance processing read and edit requests.Results cover exercised cases and environment.
Code reviewA person examines permission checks and query construction.People can miss issues; record scope and build.
Penetration testingAuthorised adversarial assessment of agreed features.Agree target, methods, timing and data handling.
FuzzingAutomatically vary inputs, including unusual or malformed ones, and observe behaviour in an agreed test environment.Inputs need not be purely random. A crash needs investigation; absence of a crash does not establish safety.

E1 to E3 do not establish a completed dynamic assessment. T1 does not replace other methods. No test is run in this lesson.

Security work takes time. Early feedback and automation may reduce rework without guaranteeing speed or protection. Assess findings, assign fixes or documented risk decisions, and verify outcomes. Avoid promises that every issue is always fixed before release. See NIST secure-development guidance.

Assign the next evidence.

RoleProposed responsibility
DeveloperExplain and implement server checks and data handling.
Security architectReview design assumptions and threat model.
Security tester / penetration testerRecord authorised scope, expectations and results.
IT operations teamRecord deployed versions, settings, events and recovery arrangements.
Application security managerCoordinate findings and follow-up.
Chief Information Security Officer (CISO)Oversee strategy and security-risk decisions.

Roles may overlap or include a supplier. A title alone authorises no test. The school must confirm operational needs; E3 cannot establish the real room assignment.

Worked example: IS-A04-R.

Create a note headed IS-A04-R on paper or in an existing tool; nothing is automatically saved. Keep source, limited conclusion, unknown, proposed check and owner.

SourceLimited conclusionProposed check and owner
B1 + E2, 11:01B is valid; the CLASS-READ refusal matches read-only permission for this request. Other routes remain unknown.Tester: agree read/edit cases for relevant routes. No test performed here.
T1, 12:10 + M1, 12:15One v1 static run had no findings; a v2 session correction is planned. Repair and deployment remain unknown.Operations and tester: request deployed build and scoped session-retest results.

Practice and expected evidence.

Keep your first answer before opening the correction. Your note should retain sources, a limited conclusion, an unknown and a proposed owner. A proposed test is not a completed test.

Exercises

Exercise 1: correct a decision in 2 to 5 minutes.

B1 permits CLASS-READ to read but not change; CLASS-EDIT may change. Room accepts exactly A or B. E2 at 11:01 refuses CLASS-READ's change A to B; E3 at 11:02 accepts CLASS-EDIT's same change, without the actual classroom assignment. In IS-A04-R, correct “B is valid, so E2 should allow it” and “E3 proves B is the correct classroom”. Name the separate checks and one proposed owner for confirming the room.

Exercise 2: turn statements into review questions.

C1 says “we validate inputs”, without code or query implementation. T1 at 12:10 reports no findings in selected v1 form files from one static run. M1 at 12:15 plans a v2 session correction; no deployment or retest is supplied. Add three IS-A04-R rows: one question on database data/instruction separation, one on plain-text browser output, one on the session correction. For each name evidence, a proposed owner and an unknown. Do not run a tool.

Open questions

Question 1: can one clean report close the review?.

T1 at 12:10 reports no findings from one static run on selected v1 form files; M1 at 12:15 only plans a v2 session correction. Explain why “the application is secure and repaired” exceeds these sources. Name two different follow-ups, their owners and limits, without claiming a live test or release decision.

Common mistakes and lesson summary.

Valid data is not permission. Authentication is not authorisation. TLS is not an edit rule. Validation is not parameterisation or context-aware output handling. No findings is not no vulnerability; a planned fix is not a verified repair.

Follow requirement → record → limited conclusion → unknown → proposed check and owner to review class-data protection without inventing an intrusion or successful fix. The next lesson examines daily operational practices and access reviews.

Flashcards

Flashcards · 1/10
0001
0001
Unseen

What does AppSec cover?

0001
0001

Answer

Risk reduction throughout software design, development, release and continuing use, without guaranteeing security.

You're on a free lesson

Ready to go further?

Unlock all courses, exercises, real-world scenarios and flashcards — everything to build real skills.

Unlock full access →

No commitment · Cancel anytime

Sign in to track your progress.

Sign in to validate →

200+ lessons · Challenges · Flashcards

$99/year — save 31% vs monthly

Unlock full access →