Code Monkey home page Code Monkey logo

Comments (6)

tmolitor-stud-tu avatar tmolitor-stud-tu commented on September 10, 2024

That should not happen since the app has an internal counter to check if it ever succeeded using SASL2 with SCRAM. Can you provide a logfile via email to [email protected]

See https://github.com/monal-im/Monal/wiki/Introduction-to-Monal-Logging

from monal.

tmolitor-stud-tu avatar tmolitor-stud-tu commented on September 10, 2024

Please send the 2 newest logfiles to counter a possibly rotated logfile.

from monal.

enbyfoxen avatar enbyfoxen commented on September 10, 2024

Log files have been sent as requested.

from monal.

tmolitor-stud-tu avatar tmolitor-stud-tu commented on September 10, 2024

from monal.

tmolitor-stud-tu avatar tmolitor-stud-tu commented on September 10, 2024

I need more logfiles (see my mail).

In the meantime some explanations:
Monal offers only PLAIN auth for SASL1 and only SCRAM for SASL2.
The database has a field recording if SASL2 was used at least once and that disables SASL1.
The database has a second field recording if PLAIN auth is needed on a server and if so, SASL2 isn't tried, falling back to SASL1.
If Monal sees that SASL2 with something better than PLAIN is advertised during SASL1 authentication, it switches that "plain needed" flag off and restarts authentication.
This retriggered auth will use SASL2 and thus switch the "SASL2 used at least once" field in the db on. This flag will prevent SASL1 auth.

To allow seamless server upgrades for accounts already present when the server did only suppot SASL1 and these flags weren't present in the DB, the database upgrade to Monal 6.2 flipped the flags to plain_activated=true, supports_sasl2=false (default would be both false).

And I guess here is the bug you hit: these flags were only flipped for accounts not enabled and having the supports_sasl2 set when the DB upgrade was done. That's obviously wrong, since already activated accounts not supporting SASL2 should have plain_activated=true, too, to allow seamless upgrades later on.

Nonetheless more logs would be good to check my theory.

from monal.

tmolitor-stud-tu avatar tmolitor-stud-tu commented on September 10, 2024

Since this was a security relevant bug, the only solution for you is to remove the account from monal and set it up again. I'm sorry.

from monal.

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.