Skip to content

Commit 7f5cf5e

Browse files
authored
Change CheckCode from Appears to Vulnerable
1 parent 6d206f8 commit 7f5cf5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/gather/onedev_arbitrary_file_read.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def check
7070
res = read_file(datastore['PROJECT_NAME'], '/etc/passwd')
7171

7272
if res.body.include? 'root:x:0:0:root:'
73-
return CheckCode::Appears("OneDev instance is vulnerable.")
73+
return CheckCode::Vulnerable("OneDev instance is vulnerable.")
7474
else
7575
return CheckCode::Safe("OneDev instance is not vulnerable.")
7676
end

0 commit comments

Comments
 (0)