Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Offical apps | Community apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. CLOUDRON 10 - OpenID Broken for Guacamole
Everything related to the PHP CVE and eMudhra Cert Please read our Security issue thread - PHP and eMudhra cert compromise.

CLOUDRON 10 - OpenID Broken for Guacamole

Scheduled Pinned Locked Moved Solved Support
openid
9 Posts 3 Posters 208 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    S
    SDEInfo
    wrote last edited by girish
    #1

    Hello,

    Following the auto update of Cloudron to version 10, my external Guacamole instance (connection via OpenID) has become inaccessible.

    I am receiving the following error: error=invalid_request&error_description=requested+response_type+is+not+allowed+for+this+client&iss=https://my.sdeinfo.com/openid

    This error is preventing any external connection.
    I request a quick intervention to resolve or a simple answer this configuration issue following the update.

    Sincerely.

    1 Reply Last reply
    1
    • girishG
      girishG
      girish
      Staff
      wrote last edited by
      #2

      @sdeinfo Thanks for reporting. The fix for this is already in Cloudron 10.1.6 which we hope to push out later today. After updating Cloudron, you have to update Guacamole (2.5.3) which will fix the login.

      For some background: We have been doing lots of security audits around our SSO. OpenID has various login flows. The so-called "implicit flow" is insecure and deprecated in OpenID. I think Guacamole is the only app which is still using this flow, and we have added an exception in 10.1.6 just to keep it working.

      1 Reply Last reply
      1
      • S
        S
        SDEInfo
        wrote last edited by
        #3

        Hello,

        Thank you for your response, I understand there is a compatibility issue, but disabling it during an update significantly handicapped me.

        I use Guacamole on a server external to Cloudron (for historical reasons), how can I extend this exception to my instance? We need to be able to restore this (very quickly) for my users.

        1 Reply Last reply
        0
        • J
          J
          joseph
          Staff
          wrote last edited by
          #4

          @sdeinfo 10.1.6 is already available. Update to it and then update guacamole.

          1 Reply Last reply
          0
          • S
            S
            SDEInfo
            wrote last edited by
            #5

            I performed the update and updated my Guacamole instance.

            I even created a new OpenID profile and updated the external Docker Guacamole instance.

            Same incident 😰

            How do I fix this?

            girishG 1 Reply Last reply
            0
            • S SDEInfo

              I performed the update and updated my Guacamole instance.

              I even created a new OpenID profile and updated the external Docker Guacamole instance.

              Same incident 😰

              How do I fix this?

              girishG
              girishG
              girish
              Staff
              wrote last edited by girish
              #6

              @SDEInfo sorry my bad, I am just reading your initial report correctly now. The issue is not related to Cloudron's guacamole package but the custom OIDC Client that you are using with an external guacamole.

              Indeed, this is broken. I assumed such clients don't exist anymore and removed support for it. But I can give you a patch, give me some time.

              1 Reply Last reply
              0
              • girishG
                girishG
                girish
                Staff
                wrote last edited by
                #7

                @sdeinfo you can try this. Edit the file /home/yellowtent/platform/box/src/oidcserver.js . Around line 167, change this block with these two lines:

                } else {
                    tmp.redirect_uris = client.loginRedirectUri.split(',').map(s => s.trim());
                    // ADD THESE TWO LINES
                    tmp.response_types = [ 'code', 'id_token' ];
                    tmp.grant_types = [ 'authorization_code', 'implicit', 'refresh_token' ];
                }
                

                After that, systemctl restart box . It should work after. Can you please check?

                1 Reply Last reply
                1
                • S
                  S
                  SDEInfo
                  wrote last edited by
                  #8

                  @girish Thank you for the patch, I applied it to my server and it is now operational.

                  I was very surprised by the removal of implicit mode because my reference is based on the ".well-known/openid-configuration" file which still contains "implicit" in the options.

                  Will this patch be permanent or do I have to panic every time I update Cloudron?

                  1 Reply Last reply
                  1
                  • girishG
                    girishG
                    girish
                    Staff
                    wrote last edited by
                    #9

                    @sdeinfo OIDC Implicit flow has been deprecated for a while now and should not be used in new applications - https://oauth.net/2/grant-types/implicit/ . In fact, in the over 200 packages we maintain only one app uses implicit flow. Yup, guacamole. I very reluctantly added a hack in the manifest to get that package working.

                    I found that a fix is being worked on upstream - https://github.com/apache/guacamole-client/pull/1219 . You can also try https://github.com/Gerry9000/guacamole-auth-sso-oauth2 which fixes this exact issue . We will be moving to that repo shortly if upstream doesn't fix it soonish.

                    1 Reply Last reply
                    0
                    • girishG girish has marked this topic as solved

                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                    With your input, this post could be even better 💗

                    Register Login
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Bookmarks
                    • Search