Coder Social home page Coder Social logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 20, 2024
Probably we want that modifier ungreedy, like so:

$uri = preg_replace('#((?<=\?)|&)openid\..*?(?>=&|$)#','',$uri);

but I don't think the parameters would get mixed anyway.

Original comment by [email protected] on 22 Nov 2010 at 8:14

from lightopenid.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 20, 2024
That regex needs some work now that I look at it, but I think I made my point.

Original comment by [email protected] on 22 Nov 2010 at 8:17

from lightopenid.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 20, 2024
We need the "($this->data['openid_return_to'] != $this->returnUrl)", because 
without it, someone could send an openid response meant for another relying 
party, and it would still validate. That would enable a rogue RP to 
authenticate into LightOpenID RP-s, effectively hijacking the user's account on 
those sites.

Besides, the protocol requires that openid.return_to has to be checked, and 
it's enough reason to do that. See section 11 and 11.1 of the spec for the 
details.

As for the regex, I'll test it later and commit the fix if it works.

Original comment by [email protected] on 22 Nov 2010 at 11:33

  • Changed state: Accepted

from lightopenid.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 20, 2024
I have slightly modified the regex and commited the fix.

Original comment by [email protected] on 22 Nov 2010 at 3:30

  • Changed state: Fixed

from lightopenid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.