GithubHelp home page GithubHelp logo

semgrep / semgrep-rules Goto Github PK

View Code? Open in Web Editor NEW
706.0 34.0 365.0 9.33 MB

Semgrep rules registry

Home Page: https://semgrep.dev/registry

License: Other

Python 19.96% Java 15.76% Makefile 0.01% JavaScript 8.21% Go 7.16% C 0.59% Ruby 3.62% HTML 1.35% Pug 0.21% OCaml 0.20% Vue 0.01% HCL 27.12% TypeScript 2.08% PHP 7.28% Dockerfile 0.91% Mustache 0.45% EJS 0.31% Kotlin 0.64% C# 3.81% Shell 0.31%
static-analysis grep-like program-analysis security security-scanner semgrep semgrep-rules semgrep-registry

semgrep-rules's Introduction

semgrep-rules

powered by semgrep Semgrep community slack

branch using semgrep docker image test status
develop returntocorp/semgrep:develop semgrep-rules-test-develop

Welcome! This repository is the standard library for Semgrep rules. There are many more rules available in the Semgrep Registry written by Semgrep, Inc. and other contributors. The Semgrep Registry includes rules from this repository and additional rules that are accessible within Semgrep Cloud Platform. If there is a specific rule you are looking for, see the Semgrep registry search. To contribute, find details about contributing in the Contributing to Semgrep rules documentation.

Using Semgrep rules repository

Run existing and custom Semgrep rules locally with the Semgrep command line interface (Semgrep CLI) or continuously with Semgrep in CI while using Semgrep App. To start using Semgrep rules, see Semgrep tutorial, Getting started with Semgrep CLI, and Getting started with Semgrep App.

Contributing

We welcome Semgrep rule contributions directly to this repository! When you submit your contribution to the semgrep-rules repository we’ll ask you to make Semgrep, Inc. a joint owner of your contributions. While you still own copyright rights to your rule, joint ownership allows Semgrep, Inc. to license these contributions to other Semgrep Registry users pursuant to the LGPL 2.1 under the Commons Clause. See full license details.

Note: To contribute, review the Contributing to Semgrep rules documentation.

You can also contact us at [email protected] to make Semgrep rule contributions. We will import your rules for everyone to use!

Additional information

Help

Join Slack for the fastest answers to your questions! Or contact the team at [email protected].

GitHub action to run tests

If you fork this repository or create your own, you can add a special semgrep -rules-test GitHub Action to your workflow that will automatically test your rules using the latest version of Semgrep. See our semgrep-rules-test.

Rulesets

Rulesets are groups of rules organized by purpose, language, or framework sourced from the Semgrep Registry. If you want to modify existing rulesets or create your own, please contact us at [email protected].

semgrep-rules's People

Contributors

0xdc0de avatar artem-fedorov avatar aryx avatar ben-elttam avatar brandonspark avatar ceefour avatar colleend avatar dependabot[bot] avatar dlukeomalley avatar drewdennison avatar emjin avatar enncoded avatar gabriellesc avatar hex0punk avatar iagoabal avatar ievans avatar inkz avatar kurt-r2c avatar lewisardern avatar lfama avatar minusworld avatar mjambon avatar mschwager avatar nbrahms avatar p4p3r avatar philipturnbull avatar semgrep-dev-pr-bot[bot] avatar sjord avatar underyx avatar wingyplus 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  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

semgrep-rules's Issues

Improve Flask 0.0.0.0 check to fire only when it's a dev server

Slack conversation for context:

ulzii  2 hours ago
Per https://flask.palletsprojects.com/en/1.1.x/quickstart/#a-minimal-application

ulzii  2 hours ago
You should not set it to 0.0.0.0

ulzii  2 hours ago
And in production, you say “flaks run --host=0.0.0.0” which will pass the host as ENV variable to flask

ulzii  2 hours ago
That way you are not hardcoding bad config while still maintaining the flexibility for production configuration

grayson  2 hours ago
The relevant bit from that documentation is:

grayson  2 hours ago
Externally Visible ServerIf you run the server you will notice that the server is only accessible from your own computer, not from any other in the network. This is the default because in debugging mode a user of the application can execute arbitrary Python code on your computer.
If you have the debugger disabled or trust the users on your network, you can make the server publicly available simply by adding --host=0.0.0.0 to the command line:
$ flask run --host=0.0.0.0
This tells your operating system to listen on all public IPs.

grayson  2 hours ago
davidism is of the opinion that one should use flask run instead of python3 app.py and using flask run --host=0.0.0.0 to launch a prod server

grayson  2 hours ago
IMO, it's kind of a nit-pick

grayson  2 hours ago
It kind of depends on one's level of paranoia

grayson  2 hours ago
Perhaps an extension to the check could be only surfacing 0.0.0.0 if debug mode is on?

daghan  2 hours ago
I agree. This may be a better style but certainly not a security issue.

grayson  2 hours ago
Cool, I'll make a ticket

ulzii  1 hour ago
I do not think it is just a style issue: https://stackoverflow.com/questions/7023052/configure-flask-dev-server-to-be-visible-across-the-network. I think it is the proper way to deploy flask app. I would agree its not a security issue because exploitability of it is determined by firewall etc.
Stack OverflowStack Overflow
Configure Flask dev server to be visible across the network
I'm not sure if this is Flask specific, but when I run an app in dev mode (http://localhost:5000), I cannot access it from other machines on the network (with http://[dev-host-ip]:5000). With Rails...

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.