Git Product home page Git Product logo

wtf_sql's Introduction

WTF.SQL

Description: (see crawl.txt) Points: 500 Category: Web Flag: flag{b3tter_th@n_th3_prequels}

Solve:

  1. robots.txt -> find all routes
  2. use verifier route to leak source for all routes, subroutines
  3. Template injection
    • can't use ${config_signing_key} in post directly since it's blacklisted
    • recursive template expansion allows use of ${GET_asdf}
    • if ?asdf=${config_signing_key} then it will get interpolated again leaking secret
  4. secret is used to sign cookies
  5. allows you to change is_admin
  6. get to admin panel, need to add privileges
  7. HLE to add panel_view and panel_create privs, giving you arbitrary db.table read
  8. ggwp

Formatting notes:

  • Types
    • Routes should be VARCHAR(255)
    • header, cookie, template, etc. keys should be VARCHAR(255)
    • header, cookie, template, etc. values should be TEXT
    • response is TEXT
  • Naming
    • k/v pairs are always name value (to add to the confusion)

wtf_sql's People

Contributors

hypersonic avatar kallsyms avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.