- Notifications
You must be signed in to change notification settings - Fork 12
Pull request for 10 rules ESS-ENN #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
37 commits Select commit Hold shift + click to select a range
4208c3d insecure-biometrics-swift
ESS-ENN 2d4ea63 plaintext-http-link-html
ESS-ENN 586888d desede-is-deprecated-java
ESS-ENN 9015c09 desede-is-deprecated-kotlin
ESS-ENN 68be70d sizeof-this-c
ESS-ENN 3d453a8 cbc-padding-oracle-java
ESS-ENN e7b4680 no-null-cipher-java
ESS-ENN 1ba2958 rsa-no-padding-java
ESS-ENN f182a4b changed folder position of no-null-cipher-java
ESS-ENN ac0edaa rsa-padding-set-scala
ESS-ENN 650b88b xmlinputfactory-dtd-enabled-scala
ESS-ENN b0c6e4e Incorporated changes suggested by CodeRabbit Bot
ESS-ENN bd0bc1d httponly-false-csharp
ESS-ENN 5507b0a reqwest-accept-invalid-rust
ESS-ENN 456f431 libxml2-audit-parser-c
ESS-ENN 30f9ae3 libxml2-audit-parser-cpp
ESS-ENN 0970f4f oracleconnectionstringbuilder-hardcoded-secret-csharp
ESS-ENN 081bad0 ecb-cipher-java
ESS-ENN bec0b7e Changed severity for 3 rules as suggested by Bot
ESS-ENN 472fa36 use-of-weak-rsa-key-java
ESS-ENN 5fea8a2 unencrypted-socket-java
ESS-ENN a85cbfb use-of-weak-rsa-key-kotlin
ESS-ENN 22b3dca removing oracleconnectionstringbuilder-hardcoded-secret-csharp
ESS-ENN 090e6af use-of-md5-digest-utils-java
ESS-ENN fc5f3a1 weak-ssl-context-java
ESS-ENN bf350e6 use-of-rc4-java
ESS-ENN 85c6f95 system-setproperty-hardcoded-secret-java
ESS-ENN 07abf42 rsa-no-padding-kotlin
ESS-ENN 126ec00 des-is-deprecated-java
ESS-ENN b62d49a des-is-deprecated-kotlin
ESS-ENN ae12535 Made changes as per suggestions of coderabbit ai bot
ESS-ENN 1326f4c use-of-md5-java
ESS-ENN d26328d use-of-sha1-java
ESS-ENN 57c1edb system-setproperty-hardcoded-secret-kotlin
ESS-ENN b679216 use-of-aes-ecb-java
ESS-ENN 6ff4438 use-of-blowfish-java
ESS-ENN 66dff6f Update of use-of-md5-java
ESS-ENN File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
no-null-cipher-java
- Loading branch information
commit e7b4680ecd928296e4d4d405aea7a4dbffd952bb
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| id: no-null-cipher-java | ||
| severity: warning | ||
| language: java | ||
| message: >- | ||
| NullCipher was detected. This will not encrypt anything; the cipher | ||
| text will be the same as the plain text. Use a valid, secure cipher: | ||
| Cipher.getInstance("AES/CBC/PKCS7PADDING"). See | ||
| https://owasp.org/www-community/Using_the_Java_Cryptographic_Extensions | ||
| for more information. | ||
| note: >- | ||
| [CWE-327] Use of a Broken or Risky Cryptographic Algorithm. | ||
| [REFERENCES] | ||
| - https://owasp.org/Top10/A02_2021-Cryptographic_Failures | ||
| rule: | ||
| any: | ||
| - pattern: new NullCipher($$$) | ||
| - pattern: new javax.crypto.NullCipher($$$) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| id: no-null-cipher-java | ||
| snapshots: | ||
| ? |- | ||
| Cipher doNothingCihper = new NullCipher(); | ||
| new javax.crypto.NullCipher(); | ||
| : labels: | ||
| - source: new NullCipher() | ||
| style: primary | ||
| start: 25 | ||
| end: 41 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| id: no-null-cipher-java | ||
| valid: | ||
| - | | ||
| Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding"); | ||
| invalid: | ||
| - | | ||
| Cipher doNothingCihper = new NullCipher(); | ||
| new javax.crypto.NullCipher(); | ||
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test Cases Correctly Demonstrated
The test cases are well-formed:
Static Analysis Hint: Missing New Line at End of File
To comply with YAML standards and static analysis tools, add a newline at the end of the file. This can be fixed by ensuring your text editor is configured to automatically add new lines at the end of files or by manually adding a newline.
+Committable suggestion
Tools
yamllint