ctf writeup
IJCTF 2021 Memory
as3617
2021. 7. 25. 20:33
https://gist.github.com/as3617/fa06307b5c1bcc002e3b646bfcc3500d
exploit code
IJCTF 2021 - memory writeup
IJCTF 2021 - memory writeup. GitHub Gist: instantly share code, notes, and snippets.
gist.github.com
- disabled_functions are except putenv, mail
- clean_up option for session is off
- When the UPLOAD_PROGRESS meets clean_up option as off that session file will have the path for the uploaded file.
- PHP clean tmp file at the last of execution.
- So, if PHP gets crash, the tmp file will not be erased ->
https://bugs.php.net/bug.php?id=80246
- So, if PHP gets crash, the tmp file will not be erased ->
- upload dynamic library and get Reverse shell
Thanks to sqrtrev!!