Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update problem 'All previous versions' cannot be processed #2

Closed
molu8bits opened this issue Jan 30, 2022 · 1 comment
Closed

Update problem 'All previous versions' cannot be processed #2

molu8bits opened this issue Jan 30, 2022 · 1 comment

Comments

@molu8bits
Copy link

molu8bits commented Jan 30, 2022

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'


@cyberaz0r
Copy link
Owner

Hi, thank you for reporting this issue, now with the latest commit it should be fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants