Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Possible Sensitive Directories/Files Detected
#3
(06-23-2023, 04:46 AM)Alexandre Machado Wrote: I believe they flagged it because you are using the wwwroot folder as a temporary repository of files. In that case, I agree with the assessment. wwwroot folder is not a safe folder for storing temporary files. Anyone knowing the file name can download the file depending on the MIME type (e.g. PDF, zip, etc can be downloaded without any security check). So in theory, a person in SessionA can guess and download a file that belongs to SessionB.

You should move the uploaded files to a different directory (not a subdirectory of wwwroot) and possibly also the downloaded files. In case of file downloads you can use the IntraWeb cache feature to make them available only to the session that needs it.

Thanks Alex, will do it.

Here one query. Normally for both the upload and download what am using is the GServerController.ContentPath. As you advised above it should be WebApplication.ApplicationPath, right?
Reply


Messages In This Thread
RE: Possible Sensitive Directories/Files Detected - by pgnair - 06-23-2023, 06:06 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)