Solved

CFX problem

Posted on 2002-05-03
4
286 Views
Last Modified: 2013-12-24
Hi everybody,

System:
Coldfusion 5.0 (Linux)
Apache

I'm writing a CFX tag to securly retrieve passwords for our users. In order to confirm their identity i need the CFX to workout what directory the calling template is in (i have a UNIX library that uses the getUID() call) - but WITHOUT the user entering the template.

The only option i have come up with so far is using a CFML tag that uses getCurrentTemplatePath() (or whatever its called :) and then it calls the CFX. The down side of this is that you can decompile CFML tags very easily.

Points will go to the first viable solution other than the one above.

GR.
0
Comment
Question by:googlyralph
  • 2
  • 2
4 Comments
 
LVL 11

Accepted Solution

by:
jimmy282 earned 200 total points
ID: 6988736
GetDirectoryFromPath(GetTemplatePath())

You can pass the above as a parameter to the CFX from the calling page.

Or just set it as a variable in your application.cfm and you are done!

Jimmy
0
 
LVL 1

Author Comment

by:googlyralph
ID: 6993635
Jimmy,

trying to avoid passing in a parameter, as user could call the resulting CFX with a string and then retrieve another users password.

GR.
0
 
LVL 11

Expert Comment

by:jimmy282
ID: 6994502
Well thats avoidable.

1)Encrypt the parameter and Send, then decrypt in CFX.
2) Pass Another Parameter and if that is passes only then CFX will run. e.g. "Hideme=Yes"

Jimmy


0
 
LVL 1

Author Comment

by:googlyralph
ID: 7095347
Sorry for the delay, didnt realise i hadnt closed these questions.

GR.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question