Bugfix in Versiondetection. Without this Fix a very long string is detected as WPVersion and wpscan crashes on determing the vulns from XML because the string is used as xpath

This commit is contained in:
Christian Mehlmauer
2013-01-14 14:27:12 +01:00
parent 91187a0db3
commit 96d82405df
3 changed files with 7 additions and 1 deletions

View File

@@ -168,6 +168,6 @@ class WpVersion < Vulnerable
# Used to check if the version is correct: must contain at least one dot.
def self.version_pattern
'([^\r\n]+[\.][^\r\n]+)'
'([^\r\n"\']+\.[^\r\n"\']+)'
end
end