Secure Coding Practices

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/38

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 9:02 PM on 10/10/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

39 Terms

1
New cards

'User-supplied field is passed straight into a query' is a scenario cue for which Secure Coding Practice?

Input validation

2
New cards

'Comment text renders as script in other users' browsers' is a scenario cue for which Secure Coding Practice?

Output encoding

3
New cards

'Passwords stored in clear text' or 'no lockout after failures' is a scenario cue for which Secure Coding Practice?

Authentication and password management

4
New cards

'Session ID in the URL' or 'session survives logout' is a scenario cue for which Secure Coding Practice?

Session management

5
New cards

'User changes an ID in the URL and sees another user’s account data' is a scenario cue for which Secure Coding Practice?

Access control

6
New cards

'Team invented its own cipher' is a scenario cue for which Secure Coding Practice?

Cryptographic practices

7
New cards

'Stack trace displayed to the user' is a scenario cue for which Secure Coding Practice?

Error handling and logging

8
New cards

'Hard-coded credentials in source' is a scenario cue for which Secure Coding Practice?

Data protection

9
New cards

'Data sent over plain HTTP' is a scenario cue for which Secure Coding Practice?

Communication security

10
New cards

'Default admin account left enabled' is a scenario cue for which Secure Coding Practice?

System configuration

11
New cards

'App connects to the DB as an administrator' is a scenario cue for which Secure Coding Practice?

Database security

12
New cards

'Upload accepts any file type' is a scenario cue for which Secure Coding Practice?

File management

13
New cards

'Unchecked copy into a fixed-size buffer' is a scenario cue for which Secure Coding Practice?

Memory management

14
New cards

Check all untrusted input for type, length, range, and format, using allow-lists on the server: which Secure Coding Practice?

Input validation

15
New cards

Encode data for its destination context (HTML, URL, SQL) before it leaves the app: which Secure Coding Practice?

Output encoding

16
New cards

Verify identity with strong, hashed, salted credentials and lockout rules: which Secure Coding Practice?

Authentication and password management

17
New cards

Generate random session IDs, expire and invalidate on logout, protect cookies: which Secure Coding Practice?

Session management

18
New cards

Enforce least privilege and deny by default on every request, server side: which Secure Coding Practice?

Access control

19
New cards

Use vetted algorithms and protected key storage, never custom crypto: which Secure Coding Practice?

Cryptographic practices

20
New cards

Show generic errors to users, log detail privately, protect log integrity: which Secure Coding Practice?

Error handling and logging

21
New cards

Encrypt sensitive data at rest, minimize what is stored, no secrets in code: which Secure Coding Practice?

Data protection

22
New cards

Use TLS for data in transit and validate certificates: which Secure Coding Practice?

Communication security

23
New cards

Harden servers, patch, remove defaults, disable unused features: which Secure Coding Practice?

System configuration

24
New cards

Parameterized queries, least-privilege DB accounts, no direct user queries: which Secure Coding Practice?

Database security

25
New cards

Validate file names and types, restrict upload and path access: which Secure Coding Practice?

File management

26
New cards

Bounds checking, safe functions, free memory correctly: which Secure Coding Practice?

Memory management

27
New cards

Which Secure Coding Practice prevents these flaws: SQL injection, buffer overflow, command injection?

Input validation

28
New cards

Which Secure Coding Practice prevents these flaws: Cross-site scripting (XSS)?

Output encoding

29
New cards

Which Secure Coding Practice prevents these flaws: Credential stuffing, weak or stored-in-plaintext passwords?

Authentication and password management

30
New cards

Which Secure Coding Practice prevents these flaws: Session hijacking, fixation?

Session management

31
New cards

Which Secure Coding Practice prevents these flaws: Privilege escalation, insecure direct object references?

Access control

32
New cards

Which Secure Coding Practice prevents these flaws: Data exposure from weak or home-grown encryption?

Cryptographic practices

33
New cards

Which Secure Coding Practice prevents these flaws: Information leakage, missing audit trail?

Error handling and logging

34
New cards

Which Secure Coding Practice prevents these flaws: Exposure of PII and card data?

Data protection

35
New cards

Which Secure Coding Practice prevents these flaws: Eavesdropping, man-in-the-middle?

Communication security

36
New cards

Which Secure Coding Practice prevents these flaws: Exploits of default or unpatched settings?

System configuration

37
New cards

Which Secure Coding Practice prevents these flaws: SQL injection, over-privileged DB access?

Database security

38
New cards

Which Secure Coding Practice prevents these flaws: Path traversal, malicious uploads?

File management

39
New cards

Which Secure Coding Practice prevents these flaws: Buffer overflow, memory leaks?

Memory management