This commit is contained in:
erwanlr
2020-07-24 15:32:41 +02:00
parent a9760e8817
commit ecf7df9c01

View File

@@ -7,9 +7,6 @@ module WPScan
include References include References
end end
#
# Some classes are empty for the #type to be correctly displayed (as taken from the self.class from the parent)
#
class BackupDB < InterestingFinding class BackupDB < InterestingFinding
def to_s def to_s
@to_s ||= "A backup directory has been found: #{url}" @to_s ||= "A backup directory has been found: #{url}"
@@ -22,6 +19,10 @@ module WPScan
end end
class DebugLog < InterestingFinding class DebugLog < InterestingFinding
def to_s
@to_s ||= "Debug Log found: #{url}"
end
# @ return [ Hash ] # @ return [ Hash ]
def references def references
@references ||= { url: ['https://codex.wordpress.org/Debugging_in_WordPress'] } @references ||= { url: ['https://codex.wordpress.org/Debugging_in_WordPress'] }
@@ -44,6 +45,10 @@ module WPScan
end end
class FullPathDisclosure < InterestingFinding class FullPathDisclosure < InterestingFinding
def to_s
@to_s ||= "Full Path Disclosure found: #{url}"
end
# @return [ Hash ] # @return [ Hash ]
def references def references
@references ||= { url: ['https://www.owasp.org/index.php/Full_Path_Disclosure'] } @references ||= { url: ['https://www.owasp.org/index.php/Full_Path_Disclosure'] }
@@ -106,6 +111,9 @@ module WPScan
end end
class UploadSQLDump < InterestingFinding class UploadSQLDump < InterestingFinding
def to_s
@to_s ||= "SQL Dump found: #{url}"
end
end end
class WPCron < InterestingFinding class WPCron < InterestingFinding