If this is your first visit, check our documentation. To post, register or login.
Forums / Other Business Topics / SecurityMetrics scans

SecurityMetrics scans

Started by swguy on 15 Feb 2017, 11:56 AM · Views: 65

Results 1 to 3 of 3
15 Feb 2017, 11:56 AM
#1
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

SecurityMetrics scans

CVSS 5.00 Fail Backup Files Disclosure
They complain that
index.php?main_page=products_new~~~
correctly resolves which "could be used to guess old backup files". This is perhaps the dumbest test ever created. Has anyone responded to this?

Zen Cart 1.5.5 handles this the same way. It seems like a huge waste to check this condition in code.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

15 Feb 2017, 2:43 PM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: SecurityMetrics scans

While agree that the example provided couldn't provide anything of interest other than having completely renamed/modified every file that generates that page, I could see an improperly handled request for additional images to potentially reveal such single file information.

The difference between the two requests (thinking that swguy fully understand this) is that the first (OP) version initiates a call tree to files in folders, associated language information and a template file that all follow that naming sequence and would all have had to be be renamed in the right spot in order to satisfactorily resolve. The second, takes a single file, but due to other sanitization applied in a default template, the only file(s) revealed are those that exist in the directory associated with the additional image(s), which is a much smaller population and further ought to only contain images based on guidance of use, htaccess restrictions, etc...

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

15 Feb 2017, 3:28 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: SecurityMetrics scans

Zen Cart filters out the invalid characters as part of its sanitization of inputs:

  if (isset($_GET['main_page'])) $_GET['main_page'] = preg_replace('/[^0-9a-zA-Z_]/', '', $_GET['main_page']);

So what you're seeing is a false-positive.

Zen Cart is only going to main_page=products_new, and even if products_new~~~ existed it wouldn't use it, couldn't use it.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.