jiveshkalra / SecureHack-Quest-TechBuzz

1 stars 16 forks source link

hardcoded paths(re-opened) #205

Closed Yashverm closed 3 months ago

Yashverm commented 3 months ago

Description of the Vulnerability

paths may differ between development, testing, and production environments. hardcoding paths can lead to environment-specific issues , exposing sensitive paths or information in the code , revealing the directory structure or sensitive files

Screen Shot of the Vulnerable Code

blogs.html 7 8

Impact of the vulnerability

3/5

Recommended Steps to resolve it?

environment-specific configuration files or environment variables to set paths based on the current environment , store sensitive paths in secure configuration files or environment variables , and avoid exposing them in the code

School Name

Lions Public School

jiveshkalra commented 3 months ago

the screenshots you have given are not hardcoded paths, they are of dynamic paths only