[GH-ISSUE #25] Error on Web Pages Home & By Product veulnerabilities & cve_updater.py #24

Closed
opened 2026-03-02 23:36:04 +03:00 by kerem · 7 comments
Owner

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 ##################

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 <module> 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_functions[rule.endpoint](**req.view_args) 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 ##################
kerem 2026-03-02 23:36:04 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@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

<!-- gh-comment-id:938435945 --> @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 (5e42a2002af20e13831d0c34b8ef279c712e1f80) of July 26 ? Thanks
Author
Owner

@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 :

Hi,

Do you have the latest version of SECMON? Normally, I have treated this
problem in a commit (5e42a20
https://github.com/Guezone/SECMON/commit/5e42a2002af20e13831d0c34b8ef279c712e1f80)
of July 26 ?

Thanks


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Guezone/SECMON/issues/25#issuecomment-938435945, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ARHJN7UVFZNQZDVOGKSFFDTUF2RKZANCNFSM5EZ6YVOA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

<!-- gh-comment-id:938674900 --> @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 : > Hi, > > Do you have the latest version of SECMON? Normally, I have treated this > problem in a commit (5e42a20 > <https://github.com/Guezone/SECMON/commit/5e42a2002af20e13831d0c34b8ef279c712e1f80>) > of July 26 ? > > Thanks > > — > You are receiving this because you are subscribed to this thread. > Reply to this email directly, view it on GitHub > <https://github.com/Guezone/SECMON/issues/25#issuecomment-938435945>, or > unsubscribe > <https://github.com/notifications/unsubscribe-auth/ARHJN7UVFZNQZDVOGKSFFDTUF2RKZANCNFSM5EZ6YVOA> > . > Triage notifications on the go with GitHub Mobile for iOS > <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> > or Android > <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>. > >
Author
Owner

@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 :

Yes i have the last version available on your github.

Le ven. 8 oct. 2021 à 10:09, Guezone @.***> a écrit :

Hi,

Do you have the latest version of SECMON? Normally, I have treated this
problem in a commit (5e42a20
https://github.com/Guezone/SECMON/commit/5e42a2002af20e13831d0c34b8ef279c712e1f80)
of July 26 ?

Thanks


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Guezone/SECMON/issues/25#issuecomment-938435945, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ARHJN7UVFZNQZDVOGKSFFDTUF2RKZANCNFSM5EZ6YVOA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

<!-- gh-comment-id:938699686 --> @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 : > Yes i have the last version available on your github. > > > > > Le ven. 8 oct. 2021 à 10:09, Guezone ***@***.***> a écrit : > >> Hi, >> >> Do you have the latest version of SECMON? Normally, I have treated this >> problem in a commit (5e42a20 >> <https://github.com/Guezone/SECMON/commit/5e42a2002af20e13831d0c34b8ef279c712e1f80>) >> of July 26 ? >> >> Thanks >> >> — >> You are receiving this because you are subscribed to this thread. >> Reply to this email directly, view it on GitHub >> <https://github.com/Guezone/SECMON/issues/25#issuecomment-938435945>, or >> unsubscribe >> <https://github.com/notifications/unsubscribe-auth/ARHJN7UVFZNQZDVOGKSFFDTUF2RKZANCNFSM5EZ6YVOA> >> . >> Triage notifications on the go with GitHub Mobile for iOS >> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> >> or Android >> <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>. >> >> >
Author
Owner

@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 :
datetime

fromisoformat don't exist for verion older than Pyhton 3.7

<!-- gh-comment-id:940037017 --> @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 : ![datetime](https://user-images.githubusercontent.com/32597298/136798718-0832f37a-e44c-4a96-95ee-9973c2dcd9ff.png) fromisoformat don't exist for verion older than Pyhton 3.7
Author
Owner

@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

<!-- gh-comment-id:940086363 --> @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**
Author
Owner

@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 :

  • Go in the SECMON folder which is in volume with the Docker container
  • git pull

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

<!-- gh-comment-id:942650838 --> @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 : - Go in the SECMON folder which is in volume with the Docker container - git pull 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
Author
Owner

@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.

<!-- gh-comment-id:970004727 --> @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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SECMON#24
No description provided.