> For the complete documentation index, see [llms.txt](https://unsbotch.gitbook.io/unsbotch/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://unsbotch.gitbook.io/unsbotch/my-writeups/intigriti-1025-challenge-writeup.md).

# intigriti-1025 challenge writeup

There is my i guess unintended solution for intigriti challenge 1025.

Whili visiting the main page we can see the following:

<figure><img src="/files/2GMMGMiEi4Gac29ftBf8" alt=""><figcaption></figcaption></figure>

So the function is to paste your url and the website will parse it, first thing what i did is to send request to my webhook

<figure><img src="/files/oHGIyGLSFvvjM3SlJst1" alt=""><figcaption></figcaption></figure>

Responce of webhook is reflecting on the page, i tried to paste some xss payloads

<figure><img src="/files/pTwoHVHp8Y11QNGlhqPv" alt=""><figcaption></figcaption></figure>

But nothing happend, then i decided to check is there an opportunity to do ssrf on internal host

<figure><img src="/files/Sa2v2PuYRNUps517aTYY" alt=""><figcaption></figcaption></figure>

Filter for localhost, after some attempts i bypassed it via `http://localtest.me`

<figure><img src="/files/UQG8kThybEyxRBEZiHWw" alt=""><figcaption></figcaption></figure>

As it worked i tried to find some dirs, like admin.php or config.php but nothing came of it, i went forward and i thought about is there a chance to do request via `file:///` and read `/etc/passwd`

<figure><img src="/files/77Xp6FcPwN5Rc7kNMs1n" alt=""><figcaption></figcaption></figure>

At this point, returning to the vector with `localtest.me`, I got stuck and after a few attempts to do some tricks with cURL:

`http://example.com,file:///etc/passwd`

I noticed that the condition is that http must INCLUDE, BUT NOT START WITH IT, and i straightaway tried to bypass it via null byte

<figure><img src="/files/6oGwkA6zO2oEVdeSUHnD" alt=""><figcaption></figcaption></figure>

After that i decided to bypass it via step back in terminal

<figure><img src="/files/QwYnn50lCYEtcH90UIeh" alt=""><figcaption></figcaption></figure>

So then i looked for a flag.txt file and thought about that i should take rce for this chall and continued to browse and look at files

After 20 minutes a realized that we have a full view of all files inside machine

<figure><img src="/files/eXOzLtBnnmde4NAm4EZ0" alt=""><figcaption></figcaption></figure>

And we even don't have to take rce because we see all files with just look at directory

<figure><img src="/files/s4jmLWs9hofpiXLTwr8P" alt=""><figcaption></figcaption></figure>

And i returned to the root directory&#x20;

<figure><img src="/files/0mEPn8SviCv1zgabzw1O" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/1qm4ax6bfuwSfkXKAM5G" alt=""><figcaption></figcaption></figure>
