Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
code help
#1
I'm trying to test one of my forums to make sure its not vulernable to CVE-2019-16759

here is a link to the code https://github.com/jas502n/CVE-2019-1675...9-16759.py

When i run it I get
Traceback (most recent call last):
File "CVE-2019-16759.py", line 11, in <module>
import requests
ImportError: No module named requests

i am relatively new to python so i'm not sure where the module is.

Thanks,
Jason
Larz60+ write Jul-13-2024, 11:11 AM:
Avoid using links for code, rather please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Reply
#2
Check to see if you have requests installed whether you are using a virtual environment or not.

pip list
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags
Download my project scripts


Reply
#3
This code old and you have to use Python 2 to run,i would not bother with this.
Just fix the problem if is still there.
Vulnerability CVE-2019-16759
Quote:To resolve this vulnerability, web administrator should update the vBulletin to version 5.5.2/3/4 Patch Level 1
or disable PHP, Static HTML, and Ad Module rendering setting in the administration panel.
Larz60+ likes this post
Reply
#4
(Jul-12-2024, 12:27 AM)menator01 Wrote: Check to see if you have requests installed whether you are using a virtual environment or not.

pip list
pip list shows
requests 2.22.0

I am just running this from my terminal. The thing I am really interested in now is the troubleshooting aspect of this.
so pip shows I have version 2.22.0. How does one determine I need python2 to run the script?
Thanks,
nosaj
Reply
#5
(Jul-12-2024, 09:11 AM)snippsat Wrote: This code old and you have to use Python 2 to run,i would not bother with this.
Just fix the problem if is still there.
Vulnerability CVE-2019-16759
Quote:To resolve this vulnerability, web administrator should update the vBulletin to version 5.5.2/3/4 Patch Level 1
or disable PHP, Static HTML, and Ad Module rendering setting in the administration panel.

Understood but by doing that I'm not learning why the error popped or how I should know I needed python2 to run the script. Those answers are really what I'm after.
Thanks again, nosaj
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020