ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Encoded Question Mark leads to "invalid GET data"

April 05, 2011 3:16pm

Subscribe [4]
  • #1 / Apr 05, 2011 3:16pm

    Example URL that doesn’t work, but I don’t understand why, seeing as how it’s encoded:

    // remove spaces at the end
    <a href="http://www.bluestatedigital.com/?url=%">http://www.bluestatedigital.com/?url=%</a> 3 F

    That is on EE1.6.9, though it looks to also happen on EE2.1.3.

  • #2 / Apr 06, 2011 11:57am

    Lisa Wess

    20502 posts

    Hi, BSD -

    This is likely a security issue that we are protecting against, but let me check with my team to confirm that for you.

    Thank you!

  • #3 / Apr 06, 2011 12:05pm

    Sue Crocker

    26054 posts

    Hi, Blue State Digital.
    Just out of curiosity, what’s the purpose behind trying this?

  • #4 / Apr 06, 2011 4:13pm

    Robin Sowell

    13255 posts

    Lisa’s right- it hits the security filter.  The GET variables are passed through urldecode() (http://php.net/manual/en/reserved.variables.get.php)- so it’s effectively a ? by the time it hits the check.

    Make sense?

  • #5 / Apr 07, 2011 7:04pm

    We are trying to have a full URL as a GET variable.  So http://domain.com/template?u=http://url.com/path?var-of-their-own

    (non converted version: http://pastie.org/1769694)

    Shouldn’t the security filter be done before urldecode(), so that encoded characters can be used?

  • #6 / Apr 09, 2011 8:35am

    Greg Salt

    3988 posts

    Hi Blue Slate Digital,

    It looks like that conversion is done before EE can run it’s checks. However, where is this URL coming from? Do you have the option to pass this data in a different format (base64 encoded for example)?

    Cheers

    Greg

  • #7 / Apr 15, 2011 3:48pm

    Greg, we ended up base64 ecoding and that did work for that one. 

    But today we ran into a different issue with Google site search, where if you search for ‘foo$bar’, the dollar sign gets converted to % 24, but again, invalid get data.

  • #8 / Apr 16, 2011 8:08am

    Greg Salt

    3988 posts

    Hi Blue Slate Digital,

    Can you provide us a little bit more information about this? Do you mean that you are using Google CSE? That particular query doesn’t seem like it should be valid. What is the context for this search?

    Cheers

    Greg

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases