You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nice script. Founds properly vulnerabilities on some testing older 3.9 Moodle instance.
Anyway when I use "--update" it shows an exception. Seems like string 'All previous versions' cannot be processed.
[+] Moodle version: v3.9
[*] Checking for official vulnerabilities from vulnerability database
Traceback (most recent call last):
File "./badmoodle.py", line 235, in <module>
main()
File "./badmoodle.py", line 228, in main
check_official_vulnerabilities(version)
File "./badmoodle.py", line 86, in check_official_vulnerabilities
vulnerabilities_found = list_vulnerabilities(version[1:].split('-')[0])
File "/root/badmoodle/utils/version.py", line 76, in list_vulnerabilities
if check_in_range(ver, vuln_ver):
File "/root/badmoodle/utils/version.py", line 61, in check_in_range
ver_from = int(''.join([str(x).zfill(2) for x in vuln_ver['from'].split('.')]))
ValueError: invalid literal for int() with base 10: 'All previous versions'
The text was updated successfully, but these errors were encountered:
Nice script. Founds properly vulnerabilities on some testing older 3.9 Moodle instance.
Anyway when I use "--update" it shows an exception. Seems like string 'All previous versions' cannot be processed.
The text was updated successfully, but these errors were encountered: