cloudgoat icon indicating copy to clipboard operation
cloudgoat copied to clipboard

ec2_ssrf error on default page

Open RyanJarv opened this issue 3 years ago • 0 comments

It looks like the default page of the EC2 instance results in the following error:

TypeError: URL must be a string, not undefined
    at new Needle (/node_modules/needle/lib/needle.js:172:11)
    at Function.module.exports.(anonymous function) [as get] (/node_modules/needle/lib/needle.js:818:12)
    at /home/ubuntu/app/ssrf-demo-app.js:32:12
    at Layer.handle [as handle_request] (/node_modules/express/lib/router/layer.js:95:5)
    at next (/node_modules/express/lib/router/route.js:137:13)
    at Route.dispatch (/node_modules/express/lib/router/route.js:112:3)
    at Layer.handle [as handle_request] (/node_modules/express/lib/router/layer.js:95:5)
    at /node_modules/express/lib/router/index.js:281:22
    at Function.process_params (/node_modules/express/lib/router/index.js:335:12)
    at next (/node_modules/express/lib/router/index.js:275:10)

The following URL does however work, just difficult to get to this step when the main page is broken.

http://<ec2 url>/?url=http://169.254.169.254/latest/meta-data/iam/security-credentials/

RyanJarv avatar Aug 11 '21 19:08 RyanJarv