Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 3 out of 18 pages
Exam (elaborations)

SECURE CODING FINAL EXAM QUESTIONS AND ANSWERS 2026-27

Document preview thumbnail
Preview 3 out of 18 pages

SECURE CODING FINAL EXAM QUESTIONS AND ANSWERS 2026-27

Content preview

1



SECURE CODING FINAL EXAM QUESTIONS AND
ANSWERS 2026-27 LATEST UPDATED STUDY GUIDE


What are the two high-level approaches to make web apps stateful? -
1. Set session IDs (SIDs)
2. Use web-app framework to send state to client and have client send
state back to server.

Examples of why states are good in client/server model: - Banking,
online shopping carts

Client state manipulation - Web app attacks in which an attacker
modifies a state stored on the client and returns to the server

,2


Defend against client state manipulation: - 1. Keep states on server side
(send client SID)
2. Send state to client using cryptography to enforce state integrity

Session hijacking - An attack in which an attacker attempts to
impersonate the user by using his SID

Session-fixation attack - Attacker tricks the user to access a genuine
web server using an explicit session ID value, and then the attacker
assumes the identity of the victim and exploits their credentials at the
server.

Defenses against session attacks - 1. Dont put SIDS in URLs (Instead,
use POST variables)
2. Expire SIDs
3. Hash SIDS and client info
4. Use cookies


Cookies - A state passes between communicating processes.

Server can set SID cookies (e.g by returning for the confirmation page)

XSRF - Cross-Site Request Forgery (similar to confused deputy)

Attack in which a privileged client (victim) sends a request (i.e transfer
$) on behalf of a less privileged 3rd party (attacker)

XSRF Defenses - 1. Server may confirm/reauthenticate user before
satisfying sensitive requests
2. Server embeds a hidden, hard to guess (cryptograph) token in all
HTML forms and only satisfies requests with the proper tokens

Proper tokensq - Request comes from returned webpage, not attacker

OWASP top 10 - Open web app security project

, 3


Database - Organized collection of data

DBMS - software for managing the database

Relational Database - Data is organized into tables (i.e. relations) of
rows and columns with a unique key identifying each row

Logical schema - Defines types and names

Physical schema - Defined data layout

Document information

Uploaded on
September 12, 2026
Number of pages
18
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
CA$41.90

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Sold
65
Followers
13
Items
2565
Last sold
1 month ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions