How do I bypass an Application.cfm file?

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default How do I bypass an Application.cfm file?

    I have an application that uses the CF Security Framework (Application.cfm,
    cflogin, cfloginuser), Apache, and MySQL to handle the log in process. It
    works fine.

    But, that assumes the username/password exists in the database. I want to
    implement a link from the login page that allows a person to go to a
    new_user.cfm form, put in their personal information, and insert the data into
    the database. The action page then calls a logout page which does a cflogout
    and the login page is redisplayed. The new user now has a valid record and can
    log in to the application. The application uses "roles" and the new user is
    preassigned at the lowest level of access.

    Right now, because Application.cfm is called for every page, the new user
    selects the link, but (because there isn't yet a valid login) the login page is
    redisplayed instead of the new_user.cfm page. If someone with a valid
    username/password logs in, the application does jump straight to the
    new_user.cfm page and the database insert (and subsequest cflogout) happens
    correctly.

    I've tried putting various traps in various places in the login page and
    Application.cfm code, but nothing seems to work.

    If I have to, I will write my own login page, but I have a lot of session,
    cookie, and client variables that are set in Application.cfm and would rather
    continue to use that process.

    Thanks in advance

    Richard Mossman Guest

  2. Similar Questions and Discussions

    1. Bypass forms authentication
      My application uses forms-based authentication. In my .NET project I have a subfolder to store forms that display user-friendly error messages to...
    2. Bypass Print Dialog
      Hi all, I'm building a ticketing system for a minor league baseball team and of course it will utilize a ticket printer. I was wondering if there...
    3. Workstation Bypass
      I'm running windows XP on a Netware Network, after I enter the netware password and user name, I am prompted for a workstation password and user...
    4. Password Bypass
      Using a computer with various people, I have discovered that one person has found it possible to bypass my password protect using a function key to...
    5. Bypass validation on cancel
      Can anyone point me to some documentation on bypassing validation controls when a user selects cancel? What I have is a user control with a form...
  3. #2

    Default Re: How do I bypass an Application.cfm file?

    There are lot's of ways to do this. However, you do NOT want to add a URL
    parameter for this kind of thing.

    A quick and dirty way is to add the following kind of logic to your
    Application.cfm or Application.cfc:

    <CFSET sInsecureFileOrDirectory = "new_user.cfm">
    <CFIF 0 NEQ FindNoCase (CGI.SCRIPT_NAME, sInsecureFileOrDirectory)>
    <!--- Free pass file or directory. If no further processing needed you
    can just use the <CFEXIT> tag --->
    ...
    <CFELSE>
    *** Normal login stuff here ***
    </CFIF>


    MikerRoo Guest

  4. #3

    Default Re: How do I bypass an Application.cfm file?

    Above comment should read "If no further processing, inside Application.cfm, is needed....".
    MikerRoo Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139