Skip to content

Add initial python checkers#30

Closed
maharshi-deepsource wants to merge 2 commits intoDeepSourceCorp:masterfrom
maharshi-deepsource:checkers/python
Closed

Add initial python checkers#30
maharshi-deepsource wants to merge 2 commits intoDeepSourceCorp:masterfrom
maharshi-deepsource:checkers/python

Conversation

@maharshi-deepsource
Copy link
Contributor

Test logs:

Testing built-in rules...
./bin/globstar test -d checkers/
Running test case: py-avoid-marksafe.yml
Running test case: py-context-autoescape-off.yml
Running test case: py-empty-aes-key.yml
Running test case: py-filter-issafe.yml
Running test case: py-format-html-param.yml
Running test case: py-insecure-cipher.yml
Running test case: py-insecure-hash-sha1.yml
Running test case: py-safe-string-extend.yml
Running test case: py-tainted-pickle-deserialize.yml
All tests passed%                              

deserialization

Signed-off-by: Maharshi Basu <maharshi@deepsource.io>
@vercel
Copy link

vercel bot commented Feb 14, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
globstar ⬜️ Ignored (Inspect) Visit Preview Feb 14, 2025 6:54pm

Checkers implemented:

- CSRF exemption decorator
- required_encryption field set to False in Dask
- class extension with custom django expressions
- usage of extra() method to execute SQL queries
- usage of small key sizes in cryptographic schemes

Signed-off-by: Maharshi Basu <maharshi@deepsource.io>
@maharshi-deepsource
Copy link
Contributor Author

New test logs:

Testing built-in rules...
./bin/globstar test -d checkers/
Running test case: py-avoid-marksafe.yml
Running test case: py-context-autoescape-off.yml
Running test case: py-csrf-exempt.yml
Running test case: py-distributed-security-required-encryption.yml
Running test case: py-django-class-custom-extends.yml
Running test case: py-empty-aes-key.yml
Running test case: py-filter-issafe.yml
Running test case: py-format-html-param.yml
Running test case: py-insecure-cipher.yml
Running test case: py-insecure-hash-sha1.yml
Running test case: py-insufficient-keysize.yml
Running test case: py-query-set-extra.yml
Running test case: py-safe-string-extend.yml
Running test case: py-tainted-pickle-deserialize.yml
All tests passed%                                    

@MashyBasker
Copy link
Contributor

Reopened after restructure in #60

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants