https://github.com/sunrisexu/code-audit-search
Save and resume your search history during code audit
https://github.com/sunrisexu/code-audit-search
bug-hunting code-audit rce-scanner regex-match vscode-extension xss
Last synced: 4 months ago
JSON representation
Save and resume your search history during code audit
- Host: GitHub
- URL: https://github.com/sunrisexu/code-audit-search
- Owner: sunriseXu
- License: mit
- Created: 2024-08-06T07:58:57.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-08-13T09:11:52.000Z (11 months ago)
- Last Synced: 2024-10-12T01:21:51.573Z (9 months ago)
- Topics: bug-hunting, code-audit, rce-scanner, regex-match, vscode-extension, xss
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=sunriseXu.audit-search
- Size: 1.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Audit: audit-search-0.0.6.vsix
Awesome Lists containing this project
README
# Code Audit Search
## Description
During code audit, we use lots of regex to match potential vulnerable sources and sinks. However, in large codebase, the results can be so many that it's not easy to manage the results and review history. So that I write a vscode extension to improve your searching experience. You can search with your favorite regex and save the results, take a break, and go back to grab them. I also provide built-in handy regex with various vulnerablity type, including xss, rce, unsafe extraction. Just go and get it to start your code audit journey.
## Installation
_Either_
- click the extensions button (lowest square icon in the editor), and type in code audit search, select the one by sunriseXu
_or_
- go here [vscode Extensions Marketplace](https://marketplace.visualstudio.com/items?itemName=sunriseXu.audit-search&ssr=false#overview)
## Features
### Built-in regex templates
| Tag | Type | Regex | Description |
| ------------------ | ----- | ------------ | ------------------------------------------- |
| `jqTempStr` | xss | `[\s\S]{0,20}<[\s\S]{0,200}?\${[\s\S]*?} |js template strings for raw html tags |
| `rubyTempStr` | xss | %Q?([^a-zA-Z\d\s])[\s\S]{0,50}?<[\s\S]{0,50}?#\\{[\s\S]{1,50}?\\}[\s\S]{0,50}?> |ruby template strings for raw html tags |
| `untarPython` | traversal | \\.extractall\\([\s\S]{0,100}?\\) |find extractor isuue, such as symlink to arbitrary file read |
### Save and Resume Your Searching
In `TODO VIEW`, click `save this search results` button, the search results will be saved in current workspace. You can delete the not interesting results during code audit. You can resume your auditing progress any time by clicking item in `Saved Search` tab.

### Save your custom regex across workspaces
Besides built-in regexs, you can build your custom regexs accross different workspaces. Just click `save this regex globally`, you will be prompted to fill in regex tag name and which language to use. You can find your custom regexs in `Custom Search` Tab.
