mirror of
https://github.com/alb-uss/SECMON.git
synced 2026-04-26 01:35:48 +03:00
[GH-ISSUE #25] Error on Web Pages Home & By Product veulnerabilities & cve_updater.py #24
Labels
No labels
bug
corrected
corrected
feature-request
feature-request
pull-request
question
reliability-improvement
to be checked up
to be checked up
vuln
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SECMON#24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Radvaroc53 on GitHub (Sep 27, 2021).
Original GitHub issue: https://github.com/alb-uss/SECMON/issues/25
Originally assigned to: @Radvaroc53, @alb-uss on GitHub.
log cve_updater.py
Updating high risk product list....
Traceback (most recent call last):
File "cve_updater.py", line 53, in
plist = getFormatedProductList()
File "/var/www/secmon/secmon_lib.py", line 860, in getFormatedProductList
pvendor = disassmbled_cpe[3].replace("_"," ").title()
IndexError: list index out of range
log apache
[wsgi:error]
################## NEW GUI ERROR AT 27/09/2021, 10:16:53 ##################
######## URL : http://secmon.local/by-product-vulns ##########
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functionsrule.endpoint
File "/usr/local/lib/python3.6/site-packages/flask_simplelogin/init.py", line 117, in simple_decorator
return dispatch(function, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/flask_simplelogin/init.py", line 98, in dispatch
return check(must) or fun(*args, **kwargs)
File "/var/www/secmon/secmon_web.py", line 602, in byProductVulns
plist = getFormatedProductList()
File "/var/www/secmon/secmon_lib.py", line 860, in getFormatedProductList
pvendor = disassmbled_cpe[3].replace("_"," ").title()
IndexError: list index out of range
None
################## PLEASE REPORT THIS ON GITHUB ##################
@alb-uss commented on GitHub (Oct 8, 2021):
Hi,
Do you have the latest version of SECMON? Normally, I have treated this problem in a commit (
5e42a2002a) of July 26 ?Thanks
@Jason-Linux commented on GitHub (Oct 8, 2021):
Yes i have the last version available on your github.
Le ven. 8 oct. 2021 à 10:09, Guezone @.***> a écrit :
@Jason-Linux commented on GitHub (Oct 8, 2021):
what's changement between the actual and the last version ?
Le ven. 8 oct. 2021 à 16:10, Jason DUBOIS @.***> a
écrit :
@Radvaroc53 commented on GitHub (Oct 11, 2021):
After a new install with same version i don't have the problem but Now i have this issue :

fromisoformat don't exist for verion older than Pyhton 3.7
@Radvaroc53 commented on GitHub (Oct 11, 2021):
Correctif :
vim /var/www/secmon/secmon_lib.py
//Import datetime et backports
from datetime import datetime, timedelta, date, time
from backports.datetime_fromisoformat import MonkeyPatch
MonkeyPatch.patch_fromisoformat()
after this restart
I precise i'm on Rocky linux 8
@alb-uss commented on GitHub (Oct 13, 2021):
Hello @Radvaroc53,
I changed the format of the errors, now the variables appear in the traceback errors, this will allow me to understand why the error remains and will be used for the next debugs. Please update SECMON :
To do on the host :
To do in the Docker container:
pip3 install -r /var/www/secmon/requirements.txt
service apache2 restart
Retry your attempts on the web pages that have errors and return me the new errors. Also, for the datetime issue, please use the Python version that has been tested and visible in the README, i.e. at least Python 3.8.
Thanks a lot
@Radvaroc53 commented on GitHub (Nov 16, 2021):
Hi !
Sry for long time since last answer, last answer i sent you how correct the bug if using Python 3.6 after test on 3.8 I don't have this problem but i prefer install without docker, to keep 1 VM, 1 Feature, and have total control on the installation.