Giter VIP home page Giter VIP logo

hahwul / authz0 Goto Github PK

View Code? Open in Web Editor NEW
342.0 11.0 47.0 361 KB

๐Ÿ”‘ Authz0 is an automated authorization test tool. Unauthorized access can be identified based on URLs and Roles & Credentials.

Home Page: https://authz0.hahwul.com

License: MIT License

Go 98.72% Dockerfile 0.94% Shell 0.34%
authz security-tools security-scanner golang golang-application authorization security bugbounty auth

authz0's Introduction


Authz0 is an automated authorization test tool. Unauthorized access can be identified based on URLs and Roles & Credentials.

URLs and Roles are managed as YAML-based templates, which can be automatically created and added through authz0. You can also test based on multiple authentication headers and cookies with a template file created/generated once.

authz0-2

๐Ÿ›ธ Key Features

  • Generate scan template $ authz0 new
    • Include URLs
    • Include Roles
    • Include ZAP history (Select URLS > Save Selected Entiries as HAR)
    • Include Burp history (Select URLs > Save item)
    • Include HAR file
  • Easy modify scan template (Role, URL) $ authz0 setUrl $ authz0 setRole authz0 setCred
  • Scanning authorization(access-control) with template $ authz0 scan
  • Support macOS/Windows/Linux and Docker, Github action

๐Ÿš€ Installation

go install

go install github.com/hahwul/authz0@latest

homebrew

brew tap hahwul/authz0
brew install authz0

Need more information? please refer to installation guide

๐Ÿ›ธ Usage

Available Commands:

  completion  Generate the autocompletion script for the specified shell
  help        Help about any command
  new         Generate new template
  scan        Scanning
  setCred     Append Credential to Template
  setRole     Append Role to Template
  setUrl      Append URL to Template
  version     Show version

1. Generate template

authz0 new <filename> [flags]

e.g

authz0 new target.yaml --include-urls urls.txt
authz0 new target.yaml --include-zap zapurls.har
authz0 new target.yaml --include-burp burpurl.xml

2. Modify template

authz0 setCred <filename> [flags]
authz0 setRole <filename> [flags]
authz0 setUrl <filename> [flags]

e.g

authz0 setUrl target.yaml setUrl -u https://www.hahwul.com
authz0 setRole target.yaml -n User1
authz0 setCred target.yaml -n User1 -H "X-API-Key: 1234" -H "TestHeader: 12344"

3. Scanning

authz0 scan <filename> [flags]

e.g

authz0 scan target.yaml
authz0 scan target.yaml -r TestUser1 -H "Cookie: 1234=1234" -H "X-API-Key: 1234555"

Github Actions

Please read https://github.com/hahwul/authz0/tree/main/github-action

๐Ÿ“– Documents

https://authz0.hahwul.com

๐Ÿค” Question

Please use discussions actively!

๐Ÿ“Œ Changelog

Detailed changes for each release are documented in the release notes.

โค๏ธ Contributing

Authz0's open-source project and made it with โค๏ธ if you want contribute this project, please see CONTRIBUTING.md and Pull-Request with cool your contents.

authz0's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

authz0's Issues

Spec

Plan

  • New
  • Scan
  • Set

Features

New

make yaml file

$ authz0 new <FILENAME> --include-urls=<urls.txt>
  • -n or --name
  • --include-urls=urls.txt
  • --include-roles=role.txt
  • --policy-success-status=200,201,204
  • --policy-fail-status=403,500
  • --policy-fail-regex='Not perm'
  • --policy-fail-size=10

Scan

run with yaml file

$ authz0 scan <FILENAME> -H "Cookie: blah=blahblah;" -H "X-API-Key: blahblah" -R admin1
  • -c or --cookie
  • -H or --headers
  • -r or --rolename

Set

Set URL

add url attribute to yaml file

$ authz0 set-url <FILENAME>

Interative shell?

Set Role

add role attribute to yaml file

$ authz0 set-role <FILENAME>

Interative shell?

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.