Git Product home page Git Product logo

coolervoid / codecat Goto Github PK

View Code? Open in Web Editor NEW
297.0 5.0 49.0 14.52 MB

CodeCat is an open-source tool to help you find/track user input sinks and security bugs using static code analysis. These points follow regex rules. Beta version.

License: BSD 3-Clause "New" or "Revised" License

Python 100.00%
static-code-analysis codereview flask-application security-tools security-audit security-team

codecat's Introduction

๐Ÿ  About me

  • ๐Ÿ‘‹ Just another programmer
  • ๐Ÿ”ญ Iโ€™m currently working in repository OctopusWAF.
  • ๐ŸŒฑ Iโ€™m currently learning Rust language.
  • ๐Ÿ‘ฏ Iโ€™m looking to collaborate on open source projects.
  • ๐Ÿ’ฌ Read my git book https://antonio-cooler.gitbook.io/coolervoid-tavern/
  • ๐Ÿ“ซ How to reach me: coolerlair[ at]gmail[dot ]com
  • โšก Fun fact: I love comics(Roy Thomas, Alan Moore, Frank Miller and Grant Morrison)!
  • โšก Sometimes I play guitar: look here

๐Ÿ“ˆ GitHub Stats

CoolerVoid's github stats

Buy Me A Coffee

codecat's People

Contributors

antoniocosta-mb avatar dalezhang93 avatar theguly avatar

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

codecat's Issues

Upload to PyPI

I was wondering why you don't upload it to PyPI. Do you need help with that? Should I do it?

Resource to prevent path traversal

Looking at the source code is not possible to see a proper resource to prevent path traversal.

Remember, codecat have a function to recursive reading in the directory. This function with user input is a dangerous issue called "path traversal". Use this tool in a controlled place. My machine is a local virtual machine to run a codecat. Looking at the firewall context, you can block different IP addresses to limit access of codecat for example.
https://github.com/CoolerVoid/codecat/blob/master/Backend/application/engine_controller.py#L77

Reference:
https://cwe.mitre.org/data/definitions/22.html

Curl operation times out

So I followed you installation instructions and for some reason the curl post keeps timing out. Not sure what the issue might be.

/tools/codecat/Backend# python3 wsgi.py &
[1] 1745
root@kali:~/tools/codecat/Backend# * Serving Flask app "application" (lazy loading)

  • Environment: production
    WARNING: This is a development server. Do not use it in a production deployment.
    Use a production WSGI server instead.
  • Debug mode: on
  • Running on https://0.0.0.0:5001/ (Press CTRL+C to quit)
  • Restarting with stat
  • Debugger is active!
  • Debugger PIN: 149-731-841

/tools/codecat/Backend# python3 wsgi.py &
[1] 1745
root@kali:~/tools/codecat/Backend# * Serving Flask app "application" (lazy loading)

  • Environment: production
    WARNING: This is a development server. Do not use it in a production deployment.
    Use a production WSGI server instead.
  • Debug mode: on
  • Running on https://0.0.0.0:5001/ (Press CTRL+C to quit)
  • Restarting with stat
  • Debugger is active!
  • Debugger PIN: 149-731-841

~/tools/codecat# curl -i -X POST -H "Content-Type: application/json" -d '{"email":"[email protected]","username":"admin","password":"rubrik123"}' https://0.0.0.0:5001/api/users -k
curl: (28) Operation timed out after 300644 milliseconds with 0 out of 0 bytes received

UnicodeDecodeError

An encoding error occurred when clicking on the View function
image
A coding error was reported
image
What I tried to audit was a content management system with Chinese
Thank you for working it out

Change color in syntax highlight

When prismjs mark lines need to use a bold with strong color... like red for example...

This turn to easy to view critical points.

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.