+ Reply to Thread
Results 1 to 9 of 9

Thread: bad_url redirect a Security Issue?

  1. #1
    Join Date
    Dec 2010
    Posts
    5

    Default bad_url redirect a Security Issue?

    I use McAfee Secure on my website, it's recently found an exploit with my form. Apparently any value can be placed/subsituted in the bad_url hidden field in my form and the form then can be made to redirect to that the new URL. McAfee calls this vulnerablity "User specified URL redirection (Open Redirect)"

    I tried creating a [special_fields] section in my INI and place my bad_url location in there however it did not work. Is that possible to do that? If so, how?

    If the INI file placement for the bad_url value is not possible is there another solution to prevent just any URL from being used as the bad_url value?

  2. #2
    Join Date
    Dec 2003
    Posts
    3,901

    Default Re: bad_url redirect a Security Issue?

    Hi,

    Sorry for delay in responding - it's that time of year.

    I think the "exploit" is theoretical only - that is, I don't think anyone could demonstrate an actual case where someone's security is actually harmed.

    I believe the problem is related to the fact that FormMail will process forms using the GET method (the POST method is more usual).

    We only support the GET method for the handful of broken servers that don't allow their webmasters to use the POST method.

    So, the solution to this is to disable the GET method and only enable it under a configuration setting.

    We'll implement this shortly, so keep an eye out for updates.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #3
    Join Date
    Dec 2010
    Posts
    5

    Default Re: bad_url redirect a Security Issue?

    Excellent! Thank you!

  4. #4
    Join Date
    Dec 2010
    Posts
    5

    Default Re: bad_url redirect a Security Issue?

    Hello, I was just wondering if there has been any update to this?

    Thanks!

  5. #5
    Join Date
    Dec 2003
    Posts
    3,901

    Default Re: bad_url redirect a Security Issue?

    Hi,

    We have made the changes and will release a new version of FormMail very shortly.

    Thanks for following up.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  6. #6
    Join Date
    Dec 2003
    Posts
    3,901

    Default Re: bad_url redirect a Security Issue?

    Hi,

    Sorry it's taken a long time, but this is now changes, tested, and released.

    Upgrade to version 8.27 and the GET method is disabled by default.

    You can enable it again (for testing, or otherwise) with the $ALLOW_GET_METHOD configuration setting.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  7. #7
    Join Date
    Dec 2010
    Posts
    5

    Default Re: bad_url redirect a Security Issue?

    Apparently changing to POST did not fix the issue. The problem is that any URL can be substituted in the bad_url field, the script does not verify what that URL should be. Doing so allows phishing attacks to get users to visit malicious sites without realizing it.

    This is what McAfee is telling me. Would like to know what you think. I had thought you could define the bad_url field in the INI but is that not the case?

    Thanks for all your help with this!

  8. #8
    Join Date
    Dec 2003
    Posts
    3,901

    Default Re: bad_url redirect a Security Issue?

    Hi,

    Quote Originally Posted by good1 View Post
    Apparently changing to POST did not fix the issue. The problem is that any URL can be substituted in the bad_url field, the script does not verify what that URL should be. Doing so allows phishing attacks to get users to visit malicious sites without realizing it.

    This is what McAfee is telling me. Would like to know what you think.
    I'd like to see someone (such as McAfee) actually demonstrate this.

    A phishing attack works by getting a user to go a webpage that looks like yours but isn't.

    If they copy your form page, and adjust the URLs on that page, that's a phishing attack. They can adjust the URL in the <form> tag - that's the most obvious thing to do.

    How is that different to copying any page on your site and adjusting the URLs on that copy?

    We can certainly lock this down further using the $TARGET_URLS feature in FormMail.

    If a real problem can be demonstrated, we'll certainly do that.

    Can you ask McAfee to demonstrate how the attack they claim could be launched?

    I had thought you could define the bad_url field in the INI but is that not the case?
    Yes, you can set bad_url in the INI file.

    It will override whatever is submitted from the HTML form.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  9. #9
    Join Date
    Dec 2010
    Posts
    5

    Default Re: bad_url redirect a Security Issue?

    Using the bad_url in the INI seemed to keep McAfee from flagging the issue. So I'm considering it resolved. Thanks for all your help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Redirect NOT working
    By LordWulf in forum FormMail Subscription Support
    Replies: 3
    Last Post: 21-Aug-2004, 10:47 PM
  2. Now I am stomped! URL for redirect
    By sigurdur in forum FormMail Subscription Support
    Replies: 3
    Last Post: 01-Aug-2004, 01:02 AM
  3. Link to your own REDIRECT page?
    By cottonslurpy in forum FormMail Subscription Support
    Replies: 2
    Last Post: 17-Jun-2004, 09:36 PM
  4. Bad_URL?
    By msoucy in forum FormMail Subscription Support
    Replies: 11
    Last Post: 03-May-2004, 12:51 AM
  5. Redirect to my page on submit
    By insight in forum FormMail Subscription Support
    Replies: 21
    Last Post: 09-Apr-2004, 01:06 AM

Bookmarks

Posting Permissions

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