OSWE-Prep

July 30, 2021 · View on GitHub

Useful tips and resources for preparing for exam.

Learning Material

OrderNameLink
1A Deep Dive into XXEhttps://www.synack.com/blog/a-deep-dive-into-xxe-injection/
2Testing and Exploiting Java Deserializationhttps://afinepl.medium.com/testing-and-exploiting-java-deserialization-in-2021-e762f3e43ca2
3Understanding Java Deserializationhttps://nytrosecurity.com/2018/05/30/understanding-java-deserialization/
4Exploiting_and_Preventing_Deserialization_Vulnerabilitieshttps://owasp.org/www-chapter-vancouver/assets/presentations/2020-05_Exploiting_and_Preventing_Deserialization_Vulnerabilities.pdf
5PHP Magic Tricks Type Jugglinghttps://owasp.org/www-pdf-archive/PHPMagicTricks-TypeJuggling.pdf
6Paul's Security Weekly #572- Type Jugglinghttps://www.youtube.com/watch?v=ASYuK01H3Po
7Ippsec PHP Deserialization and PHAR Deserializationhttps://www.youtube.com/watch?v=HaW15aMzBUM, https://www.youtube.com/watch?v=fHZKSCMWqF4
8Code that gets you pwn(s|'d) - snyffhttps://www.youtube.com/watch?v=BNHKlj-PMDc
9Hacktricks SQL Injectionhttps://book.hacktricks.xyz/pentesting-web/sql-injection
10Understanding PHP Object Injectionhttps://securitycafe.ro/2015/01/05/understanding-php-object-injection/
11Attacking .NET deserialization - Alvaro Muñozhttps://www.youtube.com/watch?v=eDfGpu3iE4Q
12Hacktricks File Uploadhttps://book.hacktricks.xyz/pentesting-web/file-upload

Practice Labs

Note: Only topics from the course will come up on the exam in most cases with slight variations.

OrderNameTypeLink
1SECURECODEVulnHub - Freehttps://www.vulnhub.com/entry/securecode-1,651/
2Cryptobank1VulnHub - Freehttps://www.vulnhub.com/entry/cryptobank-1,467/
3PentesterLab - SQLi to Shell - MySQLPentesterlab - Freehttps://pentesterlab.com/exercises/from_sqli_to_shell/course
4PentesterLab - SQLi to Shell 2 - MySQLPentesterlab - Freehttps://www.pentesterlab.com/exercises/from_sqli_to_shell_II/course
5PentesterLab - SQLi to Shell - PostgresPentesterlab - Freehttps://pentesterlab.com/exercises/from_sqli_to_shell_pg_edition/course
6Java Deserialization WebAppGitHub - Freehttps://github.com/hvqzao/java-deserialize-webapp
7XSS and MySQL FILEPentesterlab - Freehttps://pentesterlab.com/exercises/xss_and_mysql_file/course, https://sarthaksaini.com/2019/awae/xss-rce.html
8ZorsVulnHub - Freehttps://www.vulnhub.com/entry/tophatsec-zorz,117/
9XXE-StudyGitHub - Freehttps://github.com/HLOverflow/XXE-study
10GoSecure - Template Injection WorkshopWorkshop - Freehttps://gosecure.github.io/template-injection-workshop/, https://www.youtube.com/watch?v=I7xQZOvZzIw
11GoSecure - XXE WorkshopWorkshop - Freehttps://gosecure.github.io/xxe-workshop/
12Pwnworks.NET Deserialization Github - Freehttps://github.com/abhisek/pwnworks/tree/master/challenges/dotnet-deserialization
13dev/random/pipePHP Deserialization VulnHub - Freehttps://www.vulnhub.com/entry/devrandom-pipe,124/

Vulnerability Writeups

Real world examples

OrderNameLink
1Reflected XSS to Account Takeoverhttps://medium.com/a-bugz-life/from-reflected-xss-to-account-takeover-showing-xss-impact-9bc6dd35d4e6
2dotCMS 5.1.5: Exploiting H2 SQL injection to RCEhttps://blog.sonarsource.com/dotcms515-sqli-to-rce?redirect=rips
3ATutor Authentication Bypasshttps://rebraws.github.io/ATutorAuthBypass/

Scripting

Python examples of pocs that can be used for write single click pocs

OrderNameTypeLink
1Python requests documentationhttps://docs.python-requests.org/en/master/
2HTB Scriptshttps://github.com/s0j0hn/AWAE-OSWE-Prep
3OutHackThem - Single Script Exploithttps://github.com/wetw0rk/AWAE-PREP/tree/master/Community%20Contributions%20%26%20Enhancements/Code%20Improvements/XSS%20and%20MySQL/OutHackThem%20-%20Single%20Script%20Exploit
4SQLi scriptshttps://github.com/wetw0rk/AWAE-PREP/tree/master/Community%20Contributions%20%26%20Enhancements/Challenges/PortSwigger
5A python based blind SQL injection exploitation scripthttps://github.com/21y4d/blindSQLir

Cheat Sheets

OrderNameLink
1reverse shell cheat sheethttps://highon.coffee/blog/reverse-shell-cheat-sheet/
2Payload All the Thingshttps://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/Upload%20Insecure%20Files, https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/Insecure%20Deserialization
3sql injection cheat sheethttps://portswigger.net/web-security/sql-injection/cheat-sheet
4Java Deserialization Cheat Sheethttps://github.com/GrrrDog/Java-Deserialization-Cheat-Sheet/blob/master/README.md
5Deserialization Cheat Sheethttps://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Deserialization_Cheat_Sheet.md
6SQL Injection Cheat Sheethttps://www.netsparker.com/blog/web-security/sql-injection-cheat-sheet/#StringwithoutQuotes
7PHP Object Injection Cheat Sheethttps://nitesculucian.github.io/2018/10/05/php-object-injection-cheat-sheet/

Exam Resources and Reporting

Exam related resources that might be useful

OrderNameLink
1Proctoring Student Manualhttps://help.offensive-security.com/hc/en-us/articles/360050299352-Proctoring-Tool-Student-Manual
2OSWE Exam Guidehttps://help.offensive-security.com/hc/en-us/articles/360046869951l
3Offsec Report Tempalte Generatorhttps://github.com/noraj/OSCP-Exam-Report-Template-Markdown
4oswe review - tips and trickshttps://www.youtube.com/watch?v=ElZ7fFE9Gr4
5OSWE Review (AWAE Course)https://stacktrac3.co/oswe-review-awae-course/#Losing_Steam_and_Yolo%E2%80%99ing_It

HTB Writeups

Hackthebox writeups with vulnerabilities and exploitation paths similiar to lab and course content. Video walkthroughs of these writeups can also be found here

OrderMachine NameVulnerabilityLink
1PopcornInsecure File Uploadhttps://0xdf.gitlab.io/2020/06/23/htb-popcorn.html
2VaultInsecure File Uploadhttps://0xrick.github.io/hack-the-box/vault/
3ArkhamJava Deserializationhttps://0xrick.github.io/hack-the-box/arkham/
4Jsonl.NET Deserializationhttps://0xdf.gitlab.io/2020/02/15/htb-json.html
5CerealAuthentication Bypasshttps://0xdf.gitlab.io/2021/05/29/htb-cereal.html
6CelestialNode Deserializationhttps://0xdf.gitlab.io/2018/08/25/htb-celestial.html
7UnattendedlSQL Injection (MySQL)https://0xrick.github.io/hack-the-box/unattended/
8GhoulZip Traversalhttps://0xrick.github.io/hack-the-box/ghoul/
9FalafelSQL Injection (MySQL), Type Jugglinghttps://0xdf.gitlab.io/2018/06/23/htb-falafel.html
10FighterSQL Injection (MS-SQL)https://fdlucifer.github.io/2020/06/03/fighter/

Pre/Post-AWAE

Good resources to learn before starting AWAE or after finishing your OSWE exam

OrderNameLink
1Exploiting Second Order SQLi Flaws by using Burp & Custom Sqlmap Tamperhttps://pentest.blog/exploiting-second-order-sqli-flaws-by-using-burp-custom-sqlmap-tamper/
2Pentesterlab Freehttps://www.pentesterlab.com/exercises?only=free
3Portswigger Websecurityacademyhttps://portswigger.net/web-security/all-labs
4How to Test Horizontal & Vertical Authorization Issues in Web Applicationhttps://pentest.blog/how-to-test-horizontal-vertical-authorization-issues-in-web-application/
5OWASP Code Review Guidehttps://owasp.org/www-pdf-archive/OWASP_Code_Review_Guide_v2.pdf/
6Security .NET Deserializationhttps://www.slideshare.net/MSbluehat/dangerous-contents-securing-net-deserialization, https://www.youtube.com/watch?v=oxlD8VWWHE8
7Friday the 13th: JSON Attackshttps://www.youtube.com/watch?v=oUAeWhW5b8c
8Hacker101 - Source Code Reviewhttps://www.hacker101.com/sessions/source_review.html