Q: Unauthorised access to coldfusion source cfm

From the point of view, of security, how easy it for a visitor to a website to get access to the actual coldfusion source code, residing in the .cfm pages, that make up a website ?
Are there any good practices to follow to help safeguard things, perhaps using includes and placing sensitive source code in those, located outside the public folder on the webserver ?

Right, so a "visitor to the website" is not going to be able to see your code, on the whole, because visitors go in through the front door.  What you're asking is "how do I harden my website".
Things to watch out for:
* do not have debugging switched on;
* do not have robust exception handling switched on;
* only have files intended to be web browsed in directories that are web browseable.  On the whole, very few of your CFM files would / should fall into this category.  Someone else mentioned XML files.  In general the only XML files that should be web browseable should be things like RSS feeds.  Config files should not be web browseable.
* have a global error handler so that if any error DOES happen, the raw error message is not displayed.  Having an error "could not find variables.theSecretPassword" gives a person a clue as to what variable names they should be trying to hack. Just display "there was an error", and nothing else.
* clean all user input before writing it to the DB or outputting it on the screen (and that's URL variables, form variables, cookie values, and probably other things too).  Don't assume a post comes from your form.  It might not.  Even search forms input needs to be cleaned, even if it never gets stored: you're probably rendering it on the search results page, which means if there's JS in it, it'll execute as if it's come from your domain.
* tread with caution with file uploads.  I've been able to upload a file to a CMS which allowed me to bypass admin access to the management interface, which gave me full access to CF on that box.  because CF was running as an administrator, I had full access to the machine too.
* google "website security" and "website hardening" and read everything you can find.  This is not a trivial topic.
Adam

Similar Messages

  • Finding errors in a Coldfusion source file at compile time

    My application is built using Coldfusion, Flex and MySQL as backend. I am using FlexBuilder 3 for editing/compiling the Flex source(MXML and Actionscript) files. For the Coldfusion(CF) source files(cfm and cfc files), I am using Coldfusion Builder to edit the source files since it is an IDE for Coldfusion so using that I can see the CF syntax highlighted and text which is commented. After, I complete editing the Coldfusion source files in Coldfusion Builder I close them in CF Builder. Then, the application is compiled using the Flex Builder, but I cannot see any syntax errors if they exist in the Coldfusion source files and I learn of the errors at run time that there is a tag nesting error.
    After, I edit the Coldfusion source files I close them in CF Builder so that Flexbuilder can compile the project and there is no issue of CF source file being locked due to being open in CF builder.
    1. What can I do to ensure I see the CF errors at compile time?
    2. Is there a better/another method than what I am doing to work on a project which has Flex/CF source files?
    Any advice would be appreciated.
    Thanks

    While you are 'compiling' your application since it has a FLEX front end that is compiled.  This actually does nothing with the ColdFusion files, or at least I can't imagine what it would be doing with those files.
    CFML is just-in-time compiled at run time.  And I do not believe using it in a Flex builder application would change this.
    What I would do in this situation is develop the back-end and front-end separately.  Build the CFML, test it with simple test cases run through direct browser requests of the CFML or some test harness CFML that executes your back-end logic and runs it through it paces.  Once that is built and tested.  Then attach the FLEX front end to it and test that.

  • Accessing a coldfusion 8 developer server from the outside?

    I just installed Coldfusion 8 Developer edition with the built in server on a windows 7 computer on my home network because i want to experiment with some things for a client.  I can access the coldfusion pages from localhost but i cannot access them from any other computer.
    I thought that the developer edition coudl be accessed from more than just the computer its running on.
    what am I missing?

    Hi,
    Are you able to browse other web pages ie HTM from other than localhost? I would think if other HTTP was accessible then CFM pages should be also.
    If HTTP pages are generally not accessible other than localhost -  perhaps there is a firewall block or there is not route to publish to the internet or LAN.
    If other HTTP pages are able to be browsed where as CFM not, perhaps CFM is only available via the “built-in webserver” on port 8501 (or similar) and you need to connect CF to IIS with “Web Server Configuration Tool” (WSCONFIG.EXE) tool.
    HTH, Carl.

  • Excel, PowerView error in SharePoint 2013: "An error occurred while loading the model for the item or data source 'EntityDataSource'. Verify that the connection information is correct and that you have permissions to access the data source."

    I've installed SQL Server 2012 SP1 + SP server 2012 + SSRS and PowerPivot add-in.
    I also configured excel services correctly. Everything works fine but the powerview doesn't work!
    While I open an excel workbook consist of a PowerView report an error occurs: "An error occurred while loading the model for the item or data source 'EntityDataSource'. Verify that the connection information is correct and that you have permissions
    to access the data source."
    error detail: 
    <detail><ErrorCode xmlns="http://www.microsoft.com/sql/reportingservices">rsCannotRetrieveModel</ErrorCode><HttpStatus xmlns="http://www.microsoft.com/sql/reportingservices">400</HttpStatus><Message xmlns="http://www.microsoft.com/sql/reportingservices">An
    error occurred while loading the model for the item or data source 'EntityDataSource'. Verify that the connection information is correct and that you have permissions to access the data source.</Message><HelpLink xmlns="http://www.microsoft.com/sql/reportingservices">http://go.microsoft.com/fwlink/?LinkId=20476&amp;EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&amp;EvtID=rsCannotRetrieveModel&amp;ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&amp;ProdVer=11.0.3128.0</HelpLink><ProductName
    xmlns="http://www.microsoft.com/sql/reportingservices">Microsoft SQL Server Reporting Services</ProductName><ProductVersion xmlns="http://www.microsoft.com/sql/reportingservices">11.0.3128.0</ProductVersion><ProductLocaleId
    xmlns="http://www.microsoft.com/sql/reportingservices">127</ProductLocaleId><OperatingSystem xmlns="http://www.microsoft.com/sql/reportingservices">OsIndependent</OperatingSystem><CountryLocaleId xmlns="http://www.microsoft.com/sql/reportingservices">1033</CountryLocaleId><MoreInformation
    xmlns="http://www.microsoft.com/sql/reportingservices"><Source>ReportingServicesLibrary</Source><Message msrs:ErrorCode="rsCannotRetrieveModel" msrs:HelpLink="http://go.microsoft.com/fwlink/?LinkId=20476&amp;EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&amp;EvtID=rsCannotRetrieveModel&amp;ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&amp;ProdVer=11.0.3128.0"
    xmlns:msrs="http://www.microsoft.com/sql/reportingservices">An error occurred while loading the model for the item or data source 'EntityDataSource'. Verify that the connection information is correct and that you have permissions to access the
    data source.</Message><MoreInformation><Source>Microsoft.ReportingServices.ProcessingCore</Source><Message msrs:ErrorCode="rsErrorOpeningConnection" msrs:HelpLink="http://go.microsoft.com/fwlink/?LinkId=20476&amp;EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&amp;EvtID=rsErrorOpeningConnection&amp;ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&amp;ProdVer=11.0.3128.0"
    xmlns:msrs="http://www.microsoft.com/sql/reportingservices">Cannot create a connection to data source 'EntityDataSource'.</Message><MoreInformation><Source></Source><Message>For more information about this error navigate
    to the report server on the local server machine, or enable remote errors</Message></MoreInformation></MoreInformation></MoreInformation><Warnings xmlns="http://www.microsoft.com/sql/reportingservices" /></detail>
    Please help me to solve this issue. I don't know if uploading the excel workbook is enough or maybe It needed to connect to another data source.
    I Appreciate in advance.

    Hi Ali.y,
    Based on the current error message, the error can be related to the
    Claims to Windows Token Service (C2WTS) and is an expected error under certain conditions. To verify the issue, please check the aspects below:
         1. The C2WTS Windows service and C2WTS SharePoint service are both running.
         2. Check the SQL Server Browser service is running on the machine that has the PowerPivot instance of SSAS.
         3. Check the domain. You're signing into SharePoint with a user account in some domain (call it Domain A).  When Domain A is equal to Domain B which SharePoint server itself is located (they're the same domain), or Domain
    A trusts Domain B.
    In addition, the error may be caused by Kerberos authentication issue due to missing SPN. In order to make the Kerberos authentication work, you need to configure the Analysis Services to run under a domain account, and register the SPNs for the Analysis
    Services server.
    To create the SPN for the Analysis Services server that is running under a domain account, run the following commands at a command prompt:
    • Setspn.exe -S MSOLAPSvc.3/Fully_Qualified_domainName OLAP_Service_Startup_Account
    Note: Fully_Qualified_domainName is a placeholder for the FQDN.
    • Setspn.exe -S MSOLAPSvc.3/serverHostName OLAP_Service_Startup_Account
    For more information, please see:
    How to configure SQL Reporting Services 2012 in SharePoint Server 2010 / 2013 for Kerberos authentication
    Regards,
    Heidi Duan
    Heidi Duan
    TechNet Community Support

  • An error occurred accessing a data source.

    Hi,
    I have seen many posts talking about this error but still i am facing the same issue. The process i have followed is:
    1) created infopath form with receive data connection to SQL DB with plain username/pwd
    2) placed the repaeating table of receive dataconnection, form has full trust
    3) converted the dataconnection to udcx and stored it in data connection library of site collection
    4) published the form for admin approval, and as i am the admin i have uploaded it and activated it
    5) approved the dataconnection
    6) i have modified the infoath settings to use SQL authen, data connection files , cross domain
    But still i am getting this error:
    An error occurred accessing a data source.
    An entry has been added to the Windows event log of the server.
    Log ID:6932
    Regards,
    Amarnath.
    Regards, Amar.

    hi,
    I have found below log:
    DataAdapterException, Exception Message: The database returns an error. Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.)
    but i am receiving data only here is my query:
    SELECT [Service Request],[Task Order],COUNT(*) as TotalTestCases,SUM(CASE WHEN [Status] = 'Completed' THEN 1 ELSE 0 END) AS Completed,
          SUM(CASE WHEN [Status] = 'Blocked' THEN 1 ELSE 0 END) AS Blocked,SUM(CASE WHEN [Status] not in('Completed','Blocked') THEN 1 ELSE 0 END) AS InProgress FROM
          DashBoardView where SRStatus = 'Active' group by [Service Request],[Task Order] 
    is my calculated columns is giving error? but when i run my wuery its giving correct output
    Regards, Amar.

  • Not able to access the multi-source universe in WebI

    Hi
    I am not able to access the multi-source universe in WebI, getting below error message.
    [Data Federator Driver] Unexpected exception: com.crystaldecisions.thirdparty.org.omg.CORBA.UNKNOWN: null | [Data Federator Driver] Failed to connect to any of the provided 'Central Management Server' hosts.
    And also Not able to perform anything to designing multi-source universe in business Layer.
    Universe back-end is
    Oracle 11g and
    SQL2008 DB
    Version IDT: 4.1 Support Pack 2
    SAP BusinessObjects BI Platform 4.1 Support Pack 2,

    Hi Sreeni,
    You can create a new APS in CMC containing the Data Federation Service with
    -Xmx2g -> 8g (This is the suggested range)
    Make sure you remove this service from the existing APS and then create a new one.
    You could refer SAP KBA 1694041 - BI 4.x Consulting:- How to size the Adaptive Processing
    Server (APS) which would assist you in sizing the APS.
    Regards,
    Manpreet

  • SRS Browser Role Cannot Access Shared Data Sources

    I've created some reports using VS and shared data sources and deployed. I can run reports (I'm a domain admin), but users I've given system administrator roles within SRS cannot access shared data sources. However, if I embed the data source, everything
    is fine. I'm pulling data from three different servers, so the shared data sources are somewhat important.  I'm using SQL Native userid/passwords not windows authentication.  Anybody got any ideas?  I'm new to SRS.  Thanks.

    Hi Janetb,
    I’m confused about the meaning of “cannot access shared data sources”. Are you saying the user cannot see the Shared Data Sources in Report Server, but he can render the report well? Or the user cannot render the report well because he have no permission
    to access shared data sources?
    If in this first scenario, means that the role of the user have no permission to View data sources. To fix this issue, we can add View data sources task to the current role in SQL Server Management Studio.
    If in the second scenario, it is so strange. In my test, I add Browser role of the report to one user which has no permission to access the shared data sources, but he can render the report which retrieve data from the shared data sources very well.
    To troubleshooting this issue more efficiently, could you tell us the scenario you occurred and the error message you received? So that we can make further analysis and help you out.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Parse ColdFusion Source Code

    I'm looking for some help in parsing ColdFusion source code,
    say a cfc, to provide some documentation.
    Does anyone have some pointers for me to research?
    dickbob

    > the standard
    > CFC administrator tool is not available on shared
    hosting.
    All the tool does is to instantiate the component and output
    it's metadata
    on a template. There's no special trick to it.
    http://livedocs.macromedia.com/coldfusion/7/htmldocs/00000488.htm
    Adam

  • CF8.0.1 Standard (32bit) on Leopard 10.5.7 - Don't have permission to access /CFIDE/administrator/index.cfm

    Attempting to install CF8.0.1 (32bit) on Leopard 10.5.7 server, keep getting error message "You don't have permission to access /CFIDE/administrator/index.cfm".  Followed instructions from CF release notes "CF 8 update 1" part 2.  Switched Apache from 64-bit to 32-bit mode (sudo lipo httpd -thin i386 -output httpd); using conf file (httpd.conf) in /etc/apache2.  *Am confused by these instructions: (a) instructions for installing 64-bit CF8.0.1 on Mac OS X Leopard say to use "etc/httpd" for 32-bit installations.  but (b) instructions found at end of document under Mac OS X Leopard say that you can configure 32-bit CF on Leopard, but you must use 64-bit Apache in 32-bit mode.... and the location for conf file (httpd.conf) is in "etc/apache2".
    I'm attempting to install/run CF8.0.1 Standard (32-bit) via Apache2 (32-bit mode), but am unable to get access to /CFIDE/administrator/index.cfm to finish installation.  File permissions for the CFIDE folder are System=RWX, Wheel=RX, Everyone=RX.  What am I missing here?

    I am having the same issue... Any help appreciated..

  • Error when updating 1.1.5 to 2.2: I dont have access to requested source

    I am just now updating m iPod Touch from 1.1.5 to 2.2. When updating I always get the error message of "There was a problem downloading the iPod software for the iPod "name". You do not have permission to access the requested source. Make sure your network settings are correct and your network connection is active, or try again later."
    My network seems fine and i have tried multiple times. I don't know what the permission thing means. Can someone please help me and MERRY CHRISTMAS!

    Im having the same problem, i have a 1gen itouch and i restored it to see if that would make any difference. re installed itunes and everthing, everything is up to date but i cant update my itouch to 2.2 from 1.1.5 even after i bought the upgrade to 2.2 from the itunes store. Please reply with a answer if possible

  • Is it possible to debug coldfusion source code remotely

    Is it possible to debug coldfusion source code remotely, if
    so can you do it at the same time as debuging a flex app
    remotely(which I can do already)

    What do you mean by "remotely"?

  • I've received an email of an unauthorised access which states it was done in Canada, is there any way I can request Apple to inform me what the IP address that made unauthorised access was?

    I've received an email of an unauthorised access which states it was done in Canada, is there any way I can request Apple to inform me what the IP address that made unauthorised access was?
    I want to know as it possibly relates to other security issues I've had of late and it would help further my investigation. Would a subject access request possibly allow me to recieve this information? As far as I know there's no way to see a list of when and where I sign in using my Apple ID?

    Sorry but no, Apple cannot give you that information. The only way they could give anyone such an IP address would be if they received a court order to do so, if even then; I don't know what sort of tracking and logs they do.
    However, if this email claimed that someone had tried to reset your password and in any way gave you a link to click to confirm your account information, the email was almost certainly a phish. Such phishing messages have been quite common over the last two or three weeks and should be deleted without responding. You may wish to manually type in the URL for Apple's page for managing an Apple ID and change your password, just as a precaution, and make sure you've set good security questions using responses that can't just be looked up for you (they don't have to be real information; you can use any response you wish as long as you can remember what you entered).
    Regards.

  • Access odbc data sources from PL/SQL

    Dear All,
    I would like to know is there any way where i could access odbc data sources from pl/sql (i.e i would like to insert, update records into MSAccess table from pl/sql procedures, triggers). Would appreciate any help regarding this.

    The only way I know of how is to write and external function library and use that to access ODBC datasource ...if someone else knows something else I would be interesting in hearing about that also.

  • Coldfusion - Source Code Deployment

    Hi All,
    I've been into development of an application, that makes use
    of Coldfusion and uses Oracle as the backend. My predominant
    expertise is in Oracle, although i have worked on Coldfusion, since
    joining this project. I had a few queries regarding the
    implementation of CFM files.
    The platform details are:- Coldfusion MX 6.1, Oracle 8i, IIS
    6.0
    The process, that i have followed is that :
    1) Verify if the default client store, and the database
    source name are all valid.
    2) Deploy the modified files in the root directory of the Web
    Server (In this case, IIS)
    3) If there are no other changes to other configurations,
    then restart the Coldfusion Application Server.
    4) An IIS reset, would be needed in the Web server.
    5) Logon to the configured, URL and verify the changes you
    deployed/ expected are reflected.
    This was the process i followed in my development. However on
    the TEST environment, the logic is quite fuzzy. I have noticed the
    source code content is duplicated in the Coldfusion's root
    directory (WWW) as well as in the Web server's root directory.
    However, changes made to the Web server are not reflected, when i
    have reset the IIS and have re - started, the Coldfusion Server.
    Am i missing something? Is there some means by which
    Coldfusion, reads the content in its own Web Server, before
    checking external, web servers. (I understand, that it may all be
    due to configuration issues. My question is, i want to know, if
    there is any log Coldfusion maintains to check, where its reading
    the source code from? i.e. If its reading from a Web Server like
    IIS or from its own in built Web server.)
    It would be helpful, if you all could throw some light on the
    same.
    Regards,
    J

    There is a little know gotcha in CFML code deployment that
    most of us
    ignore by just making sure all CFML source files are in one
    location.
    But there are TWO roots that ColdFusion will check for CFML
    files. The
    first one is in the JRUN server. This path can vary somewhat
    depending
    on exactly which flavor of CF is installed. On my Multi-home,
    Enterprise, Development machine it is here:
    C:\JRun4\servers\{cfInstanceName}\cfusion-ear\cfusion-war.
    Then if the
    CFML file is not there, ColdFusion will check the web server
    root directory.
    I can't imagine how something would be mixing these
    directories up. But
    if a CFML file ends up in both, there could definitely be
    confusion.
    Also be aware of the CF configuration options that tell
    ColdFusion to
    NOT check for updates to CFML files. This is done for
    performance
    reasons but could have the same effect as you are describing.

  • ADF application to access WLS data source .

    Hi,
    I have developed an ADF application in Jdeveloper 10.3.3 and deployed on Weblogic server. Now I want my application to access the data from data source created in WLS. I have created a data source (ds_demo) using the WebLoigc server option Services -> JDBC -> Data Sources.Target has been set to the default server where application is running.
    Now I want application to access the database over the data source ds_demo. How can I do that?. Please provide any pointers.
    Thanks & Regards,
    MB

    You should be able to use Java code like this to directly obtain the WLS data source if you're using a POJO/DAO :
    Context ctx = null;
    DataSource ds;
    Hashtable ht = new Hashtable();
    ht.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    ht.put(Context.PROVIDER_URL, "t3://localhost:7001");
    ctx = new InitialContext(ht);
    ds = (DataSource)ctx.lookup("DataSourceJNDINameHere");
    This assumes you're deploying this on the same server hosting the datasource and that it's on port 7001.

Maybe you are looking for

  • Adobe Download Assisstant - Error 4960

    Hi. I've been having alot of trouble intalling the trial of Adobe Photoshop elements 11. I've found solutions until now when I get the message "the following disk images could not be mounted - error 4960" I'm on a 2012 Macbook pro w/ retina display M

  • Use Wildcard SSL Cert to Monitor Non-Domain COmputers

    Hello,   I was wondering if a Wildcard SSL Cert from GoDaddy or another Provider can be used to monitor Non-Domain Computer on SCOM 2012R2? TIA, Jim

  • Regarding Agent Rule GRAC_REQ_MITIG_MONITOR_AGENT

    Can anyone help me in determining if i can make use of agent rule GRAC_REQ_MITIG_MONITOR_AGENT to look for the approver at mitigation monitor stage under process ID SAP_GRAC_ACCESS_REQUEST_HR ?? SAP has suggested that this agent rule is only specific

  • Forwarding individual account

    how can i forward a single user mail to another account and than delete original mail from the first account. I know how to forward but i don't know how to auto delete that message after it gets forwarded. thank you,

  • GL Code combination query Need tuning

    Hi, I'm trying to tune the following query select * FROM fnd_flex_values val1, fnd_flex_values_tl flex1, fnd_flex_values val2, fnd_flex_values_tl flex2, fnd_flex_values val3, fnd_flex_values_tl flex3, fnd_flex_values val4, fnd_flex_values_tl flex4, f