-
-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update to beta2
- Loading branch information
Showing
14 changed files
with
259 additions
and
14 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
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
""" | ||
auto rule template | ||
~~~~ | ||
:author: LoRexxar <LoRexxar@gmail.com> | ||
:homepage: https://github.com/LoRexxar/Kunlun-M | ||
:license: MIT, see LICENSE for more details. | ||
:copyright: Copyright (c) 2017 LoRexxar. All rights reserved | ||
""" | ||
|
||
from utils.api import * | ||
|
||
|
||
class CVI_10002(): | ||
""" | ||
rule class | ||
""" | ||
|
||
def __init__(self): | ||
|
||
self.svid = 10002 | ||
self.language = "php" | ||
self.author = "LoRexxar" | ||
self.vulnerability = "Reflected XSS" | ||
self.description = "Reflected XSS" | ||
|
||
# status | ||
self.status = True | ||
|
||
# 部分配置 | ||
self.match_mode = "function-param-regex" | ||
self.match = r"echo|print" | ||
|
||
# for solidity | ||
self.match_name = None | ||
self.black_list = None | ||
|
||
# for chrome ext | ||
self.keyword = "is_echo_statement" | ||
|
||
# for regex | ||
self.unmatch = None | ||
|
||
self.vul_function = None | ||
|
||
def main(self, regex_string): | ||
""" | ||
regex string input | ||
:regex_string: regex match string | ||
:return: | ||
""" | ||
pass |
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
""" | ||
auto rule template | ||
~~~~ | ||
:author: LoRexxar <LoRexxar@gmail.com> | ||
:homepage: https://github.com/LoRexxar/Kunlun-M | ||
:license: MIT, see LICENSE for more details. | ||
:copyright: Copyright (c) 2017 LoRexxar. All rights reserved | ||
""" | ||
|
||
from utils.api import * | ||
|
||
|
||
class CVI_2001(): | ||
""" | ||
rule class | ||
""" | ||
|
||
def __init__(self): | ||
|
||
self.svid = 2001 | ||
self.language = "solidity" | ||
self.author = "LoRexxar" | ||
self.vulnerability = "假充值 vul" | ||
self.description = "开发人员没有遵循ERC20" | ||
|
||
# status | ||
self.status = True | ||
|
||
# 部分配置 | ||
self.match_mode = "only-regex" | ||
self.match = ['\\bif\\s*\\(.+(?=\\))\\)\\s*\\{[^\\}]+\\}\\s*else\\s*\\{[\\s]+return\\s+false;'] | ||
|
||
# for solidity | ||
self.match_name = None | ||
self.black_list = None | ||
|
||
# for chrome ext | ||
self.keyword = None | ||
|
||
# for regex | ||
self.unmatch = [] | ||
|
||
self.vul_function = None | ||
|
||
def main(self, regex_string): | ||
""" | ||
regex string input | ||
:regex_string: regex match string | ||
:return: | ||
""" | ||
pass |
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
""" | ||
auto rule template | ||
~~~~ | ||
:author: LoRexxar <LoRexxar@gmail.com> | ||
:homepage: https://github.com/LoRexxar/Kunlun-M | ||
:license: MIT, see LICENSE for more details. | ||
:copyright: Copyright (c) 2017 LoRexxar. All rights reserved | ||
""" | ||
|
||
from utils.api import * | ||
|
||
|
||
class CVI_2100(): | ||
""" | ||
rule class | ||
""" | ||
|
||
def __init__(self): | ||
|
||
self.svid = 2100 | ||
self.language = "solidity" | ||
self.author = "Sissel" | ||
self.vulnerability = "address(0)" | ||
self.description = "含参数包含地址的函数开始处,应增加地址是否为0的校验,防止用户操作失误。" | ||
|
||
# status | ||
self.status = True | ||
|
||
# 部分配置 | ||
self.match_mode = "regex-return-regex" | ||
self.match = [] | ||
|
||
# for solidity | ||
self.match_name = r"(\bfunction\s+[^\n]*?\(.*?address\s+([^, )]*)[^\n\r]*)" | ||
self.black_list = ['balanceOf', ';', '[]'] | ||
|
||
# for chrome ext | ||
self.keyword = None | ||
|
||
# for regex | ||
self.unmatch = ['\\b(if|require)\\s*\\(=padding=\\s!=\\s(address\\(0\\)|0x0)\\)'] | ||
|
||
self.vul_function = None | ||
|
||
def main(self, regex_string): | ||
""" | ||
regex string input | ||
:regex_string: regex match string | ||
:return: | ||
""" | ||
pass |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
""" | ||
phpbb3 | ||
~~~~ | ||
tamper for phpbb3 | ||
:author: LoRexxar <LoRexxar@gmail.com> | ||
:homepage: https://github.com/LoRexxar/Kunlun-M | ||
:license: MIT, see LICENSE for more details. | ||
:copyright: Copyright (c) 2017 LoRexxar. All rights reserved | ||
""" | ||
|
||
phpbb = { | ||
} | ||
|
||
phpbb_controlled = [ | ||
"$request", | ||
] |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env python | ||
# encoding: utf-8 | ||
''' | ||
@author: LoRexxar | ||
@contact: lorexxar@gmail.com | ||
@file: roundcube.py | ||
@time: 2020/5/7 18:27 | ||
@desc: | ||
''' | ||
|
||
roundcube = { | ||
"show": [1000, 10001, 10002], | ||
"Q": [1000, 10001, 1009, 10002], | ||
"login": [1000, 10001, 10002], | ||
} | ||
|
||
roundcube_controlled = [ | ||
"get_input_value", | ||
"rcube_utils::get_input_value", | ||
"getprop", | ||
] |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
# @Time : 2019/5/14 17:01 | ||
# @Author : LoRexxar | ||
# @File : thinkphp.py | ||
# @Contact : lorexxar@gmail.com | ||
|
||
|
||
thinkphp = { | ||
} | ||
|
||
thinkphp_controlled = [ | ||
"Input", | ||
"request", | ||
"I", | ||
] |
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