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.
| Source | Supplied information |
|---|---|
| B1, school requirements | SCHOOL-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:00 | A CLASS-READ session successfully reads the list. No authentication method is supplied. |
| E2, application record at 11:01 | CLASS-READ requests a room change from A to B. It is refused; no saved change is reported. |
| E3, application record at 11:02 | CLASS-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:10 | One 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:15 | A 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.
| Work | Proposed school activity | Evidence to request |
|---|---|---|
| Design and development | Agree B1; review permissions and data handling. | Reviewed requirements and implementation for the selected build. |
| Testing and release | Check allowed and refused actions, assess findings, correct and retest; review settings. | Scope, build, expected outcomes and actual results. |
| Monitoring and maintenance | Review 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.
| Method | School example | Limit |
|---|---|---|
| Static analysis | Examine source or program artefacts without executing the application; T1 selects form files. | No findings does not prove no flaws. |
| Dynamic analysis | Observe a running test instance processing read and edit requests. | Results cover exercised cases and environment. |
| Code review | A person examines permission checks and query construction. | People can miss issues; record scope and build. |
| Penetration testing | Authorised adversarial assessment of agreed features. | Agree target, methods, timing and data handling. |
| Fuzzing | Automatically 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
| Role | Proposed responsibility |
|---|---|
| Developer | Explain and implement server checks and data handling. |
| Security architect | Review design assumptions and threat model. |
| Security tester / penetration tester | Record authorised scope, expectations and results. |
| IT operations team | Record deployed versions, settings, events and recovery arrangements. |
| Application security manager | Coordinate 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.
| Source | Limited conclusion | Proposed check and owner |
|---|---|---|
| B1 + E2, 11:01 | B 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:15 | One 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
What does AppSec cover?
Answer
Risk reduction throughout software design, development, release and continuing use, without guaranteeing security.
