Case sensitive paths
- January 17, 2023
- 3 replies
- 839 views
Hi,
Stack; IIS+CF2021
I'm trying to use the ColdFusion Security Sandbox with a pretty sophisticated ecosystem and I've noticed that parts of it tend to give java access denied errors if they are not accessed with the proper caseSensitivity.
Imagine you have a sandbox entry for:
E:\inetpub\wwwroot\someDirectory\
That allows you to see:
E:\someFiles\ and E:\someFiles\-
This all works great in most cases. But then if someone gets to the website like https://someweb.com/someDirectory/index.cfm it works fine.
Then if they somehow get to
https://someweb.com/somedirectory/index.cfm
It does NOT always work.
The error message with the 'access denied' ALWAYS has the exception error struct with the relevant tag.Context."TEMPLATE" member saying:
E:\inetpub\wwwroot\somedirectory\index.cfm
You can go correct the link in your browser:
https://someweb.com/someDirectory/index.cfm
And it might still fail. IIS captures the link right in the logs.
Only ColdFusion's tagContext.template path is wrong, and doesn't update consistently.
What exactly is going on here? How can I make sure ColdFusion is trying to access the correct case sensitive path; since Java needs that.
It looks like it's being cached.. these errors are making the sandbox quite hard to implement without a high degree of stress.
