Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
Brakeman
提交
bd1d9250
B
Brakeman
项目概览
李少辉-开发者
/
Brakeman
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
B
Brakeman
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
bd1d9250
编写于
5月 16, 2012
作者:
J
Justin Collins
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix line numbers in tests (to better ones!)
上级
89bcd139
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
20 addition
and
20 deletion
+20
-20
test/tests/test_rails2.rb
test/tests/test_rails2.rb
+9
-9
test/tests/test_rails3.rb
test/tests/test_rails3.rb
+10
-10
test/tests/test_rails_with_xss_plugin.rb
test/tests/test_rails_with_xss_plugin.rb
+1
-1
未找到文件。
test/tests/test_rails2.rb
浏览文件 @
bd1d9250
...
...
@@ -32,7 +32,7 @@ class Rails2Tests < Test::Unit::TestCase
def
test_eval
assert_warning
:warning_type
=>
"Dangerous Eval"
,
:line
=>
4
1
,
:line
=>
4
0
,
:message
=>
/^User input in eval/
,
:code
=>
/eval\(params\[:dangerous_input\]\)/
,
:file
=>
/home_controller.rb/
...
...
@@ -57,7 +57,7 @@ class Rails2Tests < Test::Unit::TestCase
def
test_command_injection_direct
assert_warning
:type
=>
:warning
,
:warning_type
=>
"Command Injection"
,
:line
=>
3
7
,
:line
=>
3
6
,
:message
=>
/^Possible command injection/
,
:confidence
=>
0
,
:file
=>
/home_controller\.rb/
,
...
...
@@ -103,8 +103,8 @@ class Rails2Tests < Test::Unit::TestCase
def
test_dynamic_render_path
assert_warning
:type
=>
:warning
,
:warning_type
=>
"Dynamic Render Path"
,
:line
=>
60
,
:message
=>
/^Render path contains parameter value near line
60
: render/
,
:line
=>
59
,
:message
=>
/^Render path contains parameter value near line
59
: render/
,
:confidence
=>
1
,
:file
=>
/home_controller\.rb/
end
...
...
@@ -112,8 +112,8 @@ class Rails2Tests < Test::Unit::TestCase
def
test_dynamic_render_path_high_confidence
assert_warning
:type
=>
:warning
,
:warning_type
=>
"Dynamic Render Path"
,
:line
=>
7
8
,
:message
=>
/^Render path contains parameter value near line 7
8
: render/
,
:line
=>
7
7
,
:message
=>
/^Render path contains parameter value near line 7
7
: render/
,
:confidence
=>
0
,
:file
=>
/home_controller\.rb/
end
...
...
@@ -121,7 +121,7 @@ class Rails2Tests < Test::Unit::TestCase
def
test_file_access
assert_warning
:type
=>
:warning
,
:warning_type
=>
"File Access"
,
:line
=>
2
2
,
:line
=>
2
1
,
:message
=>
/^Parameter value used in file name/
,
:confidence
=>
0
,
:file
=>
/other_controller\.rb/
...
...
@@ -130,7 +130,7 @@ class Rails2Tests < Test::Unit::TestCase
def
test_file_access_with_load
assert_warning
:type
=>
:warning
,
:warning_type
=>
"File Access"
,
:line
=>
6
4
,
:line
=>
6
3
,
:message
=>
/^Parameter value used in file name/
,
:confidence
=>
0
,
:file
=>
/home_controller\.rb/
...
...
@@ -139,7 +139,7 @@ class Rails2Tests < Test::Unit::TestCase
def
test_file_access_load_false
warnings
=
find
:type
=>
:warning
,
:warning_type
=>
"File Access"
,
:line
=>
6
5
,
:line
=>
6
4
,
:message
=>
/^Parameter value used in file name/
,
:confidence
=>
0
,
:file
=>
/home_controller\.rb/
...
...
test/tests/test_rails3.rb
浏览文件 @
bd1d9250
...
...
@@ -26,8 +26,8 @@ class Rails3Tests < Test::Unit::TestCase
def
test_eval_params
assert_warning
:type
=>
:warning
,
:warning_type
=>
"Dangerous Eval"
,
:line
=>
4
1
,
:message
=>
/^User input in eval near line 4
1
: eval\(pa/
,
:line
=>
4
0
,
:message
=>
/^User input in eval near line 4
0
: eval\(pa/
,
:confidence
=>
0
,
:file
=>
/home_controller\.rb/
end
...
...
@@ -53,8 +53,8 @@ class Rails3Tests < Test::Unit::TestCase
def
test_command_injection_system_params
assert_warning
:type
=>
:warning
,
:warning_type
=>
"Command Injection"
,
:line
=>
3
7
,
:message
=>
/^Possible command injection near line 3
7
:/
,
:line
=>
3
6
,
:message
=>
/^Possible command injection near line 3
6
:/
,
:confidence
=>
0
,
:file
=>
/home_controller\.rb/
end
...
...
@@ -71,7 +71,7 @@ class Rails3Tests < Test::Unit::TestCase
def
test_file_access_load
assert_warning
:type
=>
:warning
,
:warning_type
=>
"File Access"
,
:line
=>
6
8
,
:line
=>
6
7
,
:message
=>
/^Parameter value used in file name near l/
,
:confidence
=>
0
,
:file
=>
/home_controller\.rb/
...
...
@@ -143,8 +143,8 @@ class Rails3Tests < Test::Unit::TestCase
def
test_redirect_url_for_not_only_path
assert_warning
:type
=>
:warning
,
:warning_type
=>
"Redirect"
,
:line
=>
8
4
,
:message
=>
/^Possible unprotected redirect near line 8
4
: redirect_to\(url_for/
,
:line
=>
8
3
,
:message
=>
/^Possible unprotected redirect near line 8
3
: redirect_to\(url_for/
,
:confidence
=>
0
,
:file
=>
/home_controller\.rb/
end
...
...
@@ -152,8 +152,8 @@ class Rails3Tests < Test::Unit::TestCase
def
test_render_path
assert_warning
:type
=>
:warning
,
:warning_type
=>
"Dynamic Render Path"
,
:line
=>
6
4
,
:message
=>
/^Render path contains parameter value near line 6
4
: render/
,
:line
=>
6
3
,
:message
=>
/^Render path contains parameter value near line 6
3
: render/
,
:confidence
=>
1
,
:file
=>
/home_controller\.rb/
end
...
...
@@ -161,7 +161,7 @@ class Rails3Tests < Test::Unit::TestCase
def
test_file_access_send_file
assert_warning
:type
=>
:warning
,
:warning_type
=>
"File Access"
,
:line
=>
2
2
,
:line
=>
2
1
,
:message
=>
/^Parameter value used in file name near l/
,
:confidence
=>
0
,
:file
=>
/other_controller\.rb/
...
...
test/tests/test_rails_with_xss_plugin.rb
浏览文件 @
bd1d9250
...
...
@@ -121,7 +121,7 @@ class RailsWithXssPluginTests < Test::Unit::TestCase
def
test_redirect_11
assert_warning
:type
=>
:warning
,
:warning_type
=>
"Redirect"
,
:line
=>
9
6
,
:line
=>
9
5
,
:message
=>
/^Possible\ unprotected\ redirect/
,
:confidence
=>
0
,
:file
=>
/users_controller\.rb/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录