Skip to content

Instantly share code, notes, and snippets.

View osynetskyi's full-sized avatar

Oleksandr Synetskyi osynetskyi

View GitHub Profile
@osynetskyi
osynetskyi / ghsl-ctf4-writeup.md
Last active July 2, 2020 14:58
A writeup for GitHub Security Lab CTF 4: CodeQL and Chill

Step 1: Data flow and taint tracking analysis

Step 1.1: Sources

To find sources of the tainted data, we'll be looking for first parameters of isValid() methods that override a method with the same name declared in ConstraintValidator interface.

Let's define a subclass of Method for methods of interest:

class UnsafeValidationMethod extends Method {