-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from PercussiveElbow/cve_2020_15257
Add CVE-2020-15257 check
- Loading branch information
Showing
5 changed files
with
36 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Stub | ||
|
||
def attempt_cve_2020_15257() | ||
puts("! CVE-2020 escape PoC not currently implemented.") | ||
end |
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,17 @@ | ||
|
||
def cve_2020_15257_check() | ||
puts("==> CVE-2020-1527 check - Looking for abstract socket mentioning containerd") | ||
begin | ||
File.open("/proc/net/unix").each_line do | line | | ||
if line.includes?("@/containerd") | ||
puts("• Container vulnerable to CVE-2020-1527. Found the following abstract socket: ") | ||
puts(line) | ||
return true | ||
end | ||
end | ||
rescue ex | ||
puts("! Error checking for CVE-2020-15257.") | ||
end | ||
puts("• No mentions of containerd in abstract sockets, host does not appear vulnerable to CVE-2020-1527") | ||
false | ||
end |
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