Python Forum
any concerns around using os.path.isFile() in web app
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
any concerns around using os.path.isFile() in web app
#1
hello,

are there any security concerns if i use os.path.isFile() in the context of a Flask web server? i do not want to hardcode web pages so i made an if statement to see if the provided uri matches any files inside the Flask root of templates. so, what the user will enter, will be checked by python to see if it corresponds with any files. i am very new to Python and i come from different languages so i just want to make sure if Python has any kind of not-so-obvious problems with the method i use.

thank you in advance.
Reply


Messages In This Thread
any concerns around using os.path.isFile() in web app - by it07 - Aug-23-2020, 06:52 PM

Forum Jump:

User Panel Messages

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