Giter Club home page Giter Club logo

Comments (8)

Timps avatar Timps commented on June 19, 2024

Yeah looks like Codeigniter had a colossal flaw in their session security so they patched it in 2.2.0 but it's killed something in how A3M is doing sessions.

This is what's generated in the log file:ERROR - 2014-07-11 07:05:55 --> Session: HMAC mismatch. The session cookie data did not match what was expected.

And for some odd reason everytime I attempt a login it creates 4 sessions in the database. Only one of which contains the user id data.

from a3m.

StorytellerCZ avatar StorytellerCZ commented on June 19, 2024

I see two changelog items related to sessions:
Security: The Session Library now uses HMAC authentication instead of a simple MD5 checksum.
Fixed a bug in the Session Library where authentication was not performed for encrypted cookies.

I think the issue we have is with the first one.

from a3m.

Timps avatar Timps commented on June 19, 2024

That makes sense.
Looks like the second one is what started the discussion about codeigniters session security, so they changed the encryption while they were in there.

from a3m.

StorytellerCZ avatar StorytellerCZ commented on June 19, 2024

I think I have the fix. Will push in a moment.

from a3m.

StorytellerCZ avatar StorytellerCZ commented on June 19, 2024

Can you test it to make sure I got it?

from a3m.

Timps avatar Timps commented on June 19, 2024

Worked like a charm.
Thank you.

from a3m.

StorytellerCZ avatar StorytellerCZ commented on June 19, 2024

Great! I still have one more bug that I discovered while working on v2 to fix and then I'll release the new version.

from a3m.

emanuelcoelho1986 avatar emanuelcoelho1986 commented on June 19, 2024

Cheers ;) Thanks.
I made a workaround in the development environment by adding the Session.php file of the 2.1.4, since the only change was the HMAC authentication, like AdwinTrave said. With this fix i can get the Session.php from 2.2.0.

from a3m.

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.