Software Security Study Group Report 

Week 3

This week started with a brief summary of the previous week by glancing through its slides and questions. We first studied and finished cryptography’s subjects and then the software security.



We have reviewed;

  • Single message and multiple message secrecy and problems with same key encryption

  • CPA (Chosen PlainText Attacks) and their security with pseudo random functions

  • Secrecy and the implementation of one-time padding with random numbers


New topics;

  • Arbitrary length messages and Padding oracle attacks

  • Pseudorandom functions and block ciphering


Software Security

We reviewed ROP (Returned Oriented Programming) and three defense models (https://

  • To make stack/heap non-executable

  • To use ASLR (Address Space Layout Randomization)

  • Not to use libc codes entirely

The topic of the week 3 was the Web Security, which basically consists of (

  • SQL injection

  • Session Hijacking

  • Cross-site request forgery (CSRF) and Cross-site scripting (XSS)

  • Tools for executing discussed attacks (Like sqlmap)

We reviewed some basic structure of the Web then discussed similarities between SQL injection and the memory overflow attacks, which are in turn formed on the same logic: to run our own code in the place of data while the program expects input data.

We spent the rest of the day to solve CTF questions from the previous week ( write-up-pwn250/) and to hack Samed’s server ( Some programs we used: gdb, edb, r2, RopGadget, pwntools and IdaPro.

See you next week!