• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 15 pages
Exam (elaborations)

D385: Logging and Security Issues Exam Questions And Answers |Latest 2025 | Guaranteed Pass.

Document preview thumbnail
Preview 2 out of 15 pages

©THESTAR 2024/2025 ALL RIGHTS RESERVED 1:27PM. A+ 1 | P a g e D385: Logging and Security Issues Exam Questions And Answers |Latest 2025 | Guaranteed Pass. What are some common debugging techniques? - Answer- printing out values of variables - changing the state ("path") of the program to make it do different things - stepping through the execution of a program line by line - breakpoints - trace points - stopping the program at certain events - viewing the output of a program in a debugger window What are some Python debugging tools? - Answer- pdb: most commonly used - Web-PDB - wdb - Pyflame - objgraph XML External Entity Attacks - Answer- XXE - when attackers exploit an XML parser to read arbitrary files on your server - attackers might also be able to read config files, retrieve user information Insecure Deserialization - Answer- serialization is the conversion of an object in a programming language is saved into a format that can be saved to a database - DEserialization is when a serialized object is read from a file or the network and converted back into an object ©THESTAR 2024/2025 ALL RIGHTS RESERVED 1:27PM. A+ 2 | P a g e - INSECURE DESERIALIZATION occurs when an attacker can manipulate the serialized object and achieve authentication bypass, DOS, or arbitrary code execution Injection Attacks - Answer- when an application cannot properly distinguish between untrusted user data and code - typically allows for arbitrary code execution SQL Injection Attack Mitigation - Answer- use parameterized statements Log Injection Attack Mitigation - Answer- prefixing log entries with meta-data (i.e. timestamp) - validate the entry before accessing or opening Sensitive Data Leaks - Answer- occurs when an application fails to properly protect sensitive information - this typically occurs through descriptive response headers, descriptive error messages with stack traces or database error messages, or revealing comments in HTML files Cross-site Request Forgery - Answer- client-side technique used to attack other users of a web application - attackers send HTTP requests that pretend to come from the victim - attackers then carry out unwanted actions such as changing a password or transferring money from a bank account CSRF Mitigation - Answer- CSRF tokens - SameSite cookies - avoid using GET requests for state-changing actions SSRF - Answer- Server-side Request Forgery - attacker us able to send requests on behalf of the server - allows attackers to forge the request signature and assume a privileged position on a network, bypassing firewall controls, and gaining access to internal services SSRF Mitigation - Answer- never make outbound requests based on user input - validate external addresses before initiating any outbound requests PDB - Answer- debugger built into the Python standard library Which three actions are supported by the Python Debugger (PDB)? (Choose 3 answers.) - Answer- establishing breakpoints - code step throughs - stack tracing

Content preview

©THESTAR 2024/2025 ALL RIGHTS RESERVED 1:27PM. A+




D385: Logging and Security Issues Exam
Questions And Answers |Latest 2025 |
Guaranteed Pass.


What are some common debugging techniques? - Answer✔- printing out values of variables
- changing the state ("path") of the program to make it do different things
- stepping through the execution of a program line by line
- breakpoints
- trace points
- stopping the program at certain events
- viewing the output of a program in a debugger window

What are some Python debugging tools? - Answer✔- pdb: most commonly used
- Web-PDB
- wdb
- Pyflame
- objgraph

XML External Entity Attacks - Answer✔- XXE
- when attackers exploit an XML parser to read arbitrary files on your server
- attackers might also be able to read config files, retrieve user information

Insecure Deserialization - Answer✔- serialization is the conversion of an object in a
programming language is saved into a format that can be saved to a database
- DEserialization is when a serialized object is read from a file or the network and converted
back into an object



1|Page

, ©THESTAR 2024/2025 ALL RIGHTS RESERVED 1:27PM. A+


- INSECURE DESERIALIZATION occurs when an attacker can manipulate the serialized object and
achieve authentication bypass, DOS, or arbitrary code execution

Injection Attacks - Answer✔- when an application cannot properly distinguish between
untrusted user data and code
- typically allows for arbitrary code execution

SQL Injection Attack Mitigation - Answer✔- use parameterized statements

Log Injection Attack Mitigation - Answer✔- prefixing log entries with meta-data (i.e. timestamp)
- validate the entry before accessing or opening

Sensitive Data Leaks - Answer✔- occurs when an application fails to properly protect sensitive
information
- this typically occurs through descriptive response headers, descriptive error messages with
stack traces or database error messages, or revealing comments in HTML files

Cross-site Request Forgery - Answer✔- client-side technique used to attack other users of a
web application
- attackers send HTTP requests that pretend to come from the victim
- attackers then carry out unwanted actions such as changing a password or transferring money
from a bank account

CSRF Mitigation - Answer✔- CSRF tokens
- SameSite cookies
- avoid using GET requests for state-changing actions

SSRF - Answer✔- Server-side Request Forgery
- attacker us able to send requests on behalf of the server
- allows attackers to forge the request signature and assume a privileged position on a network,
bypassing firewall controls, and gaining access to internal services

SSRF Mitigation - Answer✔- never make outbound requests based on user input
- validate external addresses before initiating any outbound requests

PDB - Answer✔- debugger built into the Python standard library
Which three actions are supported by the Python Debugger (PDB)? (Choose 3 answers.) -
Answer✔- establishing breakpoints
- code step throughs
- stack tracing

2|Page

Document information

Uploaded on
February 21, 2025
Number of pages
15
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$12.99

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.
TheStar
3.7
(140)
Sold
721
Followers
178
Items
27902
Last sold
1 day 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