-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* return feature to remove blank lines and comments * add samples to perform tests * pushing some tools to help during debug tasks * skip false positives - draft function * improve taint analysis function * drafting new rules * update sarif output with new variables * apply design pattern practices to a better code compreension * remove Data::Dumper * fixed sarif * remove unecessary variables * remove old file * remove samples * create some unit tests * update rules on linter * resolv linter warnings * resolv linter warnings * new module * remove tools/ * tdy * update perltidyrc * new line * deleted tests/Sarif.t * remove blank lines * checking if the name of file that does exists * fix(Source-to-Sink): handle empty token list in PPI find method (#55) * fix(Source-to-Sink): handle empty token list in PPI find method - prevent runtime error when no tokens are found by using an empty array reference as a fallback * update security-gate.yml * update the license year * feature/code-absence; fix missing filename (#54) Co-authored-by: H. Gouvêa <[email protected]> * draft rules * refact the usage of map to for * update the type of each rule * update the documentation * remove blank line * remove blank line * fix code style --------- Co-authored-by: Heitor <[email protected]> Co-authored-by: priv <[email protected]> Co-authored-by: Lucas V. Araujo <[email protected]>
- Loading branch information
1 parent
f1225f7
commit f76bf09
Showing
6 changed files
with
144 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
@@ -1,8 +1,80 @@ | ||
--- | ||
rules: | ||
- id: '0001' | ||
- id: '0006' | ||
category: vuln | ||
name: Cross Site Scripting (XSS) | ||
message: Occur when untrusted data is rendered as HTML without proper escaping, allowing attackers to execute malicious scripts in the context of the victim's browser. | ||
sample: | ||
- render | ||
- render | ||
rules: | ||
- id: '0012' | ||
category: vuln | ||
name: Command Injection | ||
message: Command injection attacks are possible when an application passes unsafe user supplied data like form values, cookies, HTTP headers etc. to a system shell. In this attack, the attacker-supplied operating system commands are usually executed with the privileges of the vulnerable application. | ||
sample: | ||
- exec | ||
- syscall | ||
- open | ||
- qx | ||
- readpipe | ||
- id: '0006' | ||
category: vuln | ||
name: Connection String Injection | ||
message: A connection string injection attack can occur when dynamic string concatenation is used to build connection strings that are based on user input. If the string isn't validated and malicious text or characters not escaped, an attacker can potentially access sensitive data or other resources on the server. | ||
sample: | ||
- connect | ||
- ora_login | ||
- id: '0007' | ||
category: vuln | ||
name: LDAP Injection | ||
message: LDAP Injection is an attack used to exploit web based applications that construct LDAP statements based on user input. When an application fails to properly sanitize user input, it's possible to modify LDAP statements using a local proxy. This could result in the execution of arbitrary commands such as granting permissions to unauthorized queries, and content modification inside the LDAP tree. | ||
sample: | ||
- search | ||
- modify | ||
- moddn | ||
- add | ||
- bind | ||
- delete | ||
- compare | ||
- id: '0008' | ||
category: vuln | ||
name: XSS | ||
message: Cross-Site Scripting (XSS) attacks are a type of injection, in which malicious scripts are injected into otherwise benign and trusted websites. XSS attacks occur when an attacker uses a web application to send malicious code, generally in the form of a browser side script, to a different end user. | ||
sample: | ||
- printf | ||
- say | ||
- echo | ||
- header | ||
- start_html | ||
- end_html | ||
- id: '0009' | ||
category: vuln | ||
name: Remote File Inclusion | ||
message: This vulnerability allows an attacker to include a file, usually exploiting a "dynamic file inclusion" mechanisms implemented in the target application. The vulnerability occurs due to the use of user-supplied input without proper validation. this can lead to issues like - Code execution, Denial of Service, Sensitive Information Disclosure,etc. | ||
sample: | ||
- use | ||
- require | ||
- id: '0010' | ||
category: vuln | ||
name: Resource Injection | ||
message: This attack consists of changing resource identifiers used by an application in order to perform a malicious task. When an application defines a resource type or location based on user input, such as a file name or port number, this data can be manipulated to execute or access different resources. | ||
sample: | ||
- socket | ||
- id: '0011' | ||
category: vuln | ||
name: SQL Injection | ||
message: A SQL injection attack consists of insertion or “injection” of a SQL query via the input data from the client to the application. A successful SQL injection exploit can read sensitive data from the database, modify database data (Insert/Update/Delete), execute administration operations on the database (such as shutdown the DBMS), recover the content of a given file present on the DBMS file system and in some cases issue commands to the operating system. | ||
sample: | ||
- prepare | ||
- execute | ||
- bind_param | ||
- do | ||
- find | ||
- create | ||
- update | ||
- ora_open | ||
- ora_do | ||
- ora_fetch | ||
- select | ||
- query |
This file contains 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