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. Community store: apps added after today's ssrf fix never appear in the public listing

Community store: apps added after today's ssrf fix never appear in the public listing

Scheduled Pinned Locked Moved Solved Support
communityappstore
3 Posts 2 Posters 108 Views 2 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.
  • andreasduerenA Offline
    andreasduerenA Offline
    andreasdueren
    App Dev
    wrote last edited by girish
    #1

    Since commit 09c562f (ssrf protection, deployed today), newly added community apps show under My Apps but their public page returns 404 and they are missing from /api/apps.

    Probable cause: in downloadIcon in src/apps.js, secureGet(iconUrl) is now wrapped in safe(() => ...). A superagent request is a thenable, so safe() awaits it and returns a Promise instead of the request object. The next line then calls request.ok(...), which throws TypeError: request.ok is not a function. The error propagates out of resolveEntry, and refreshCache skips the app entirely with Skipping community app <title> (<url>): request.ok is not a function in the log.

    Existing apps are unaffected because their icons are already cached and downloadIcon returns before the broken line. Any app added after the deploy has no cached icon and is dropped from the listing on every refresh.

    Reproduced locally against the current repo with npm ci and a valid versions file (it passes parseVersions and checkVersionsRequirements cleanly).

    Suggested fix: build the request in a plain try/catch instead of safe(), for example

    let request;
    try { request = secureGet(iconUrl); } catch { return; }
    const [error, response] = await safe(request.ok(() => true));
    

    Affected example: Nextcloud Talk HPB, added today. https://ca.cloudron.io/app/nextcloud-talk-hpb returns 404 while the entry exists in My Apps.

    1 Reply Last reply
    3
    • robiR robi referenced this topic
    • girishG Offline
      girishG Offline
      girish
      Staff
      wrote last edited by
      #2

      My bad... fixing

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

        Deployed

        1 Reply Last reply
        2
        • girishG girish has marked this topic as solved
        • girishG girish marked this topic as a regular topic
        • J joseph marked this topic as a question
        • J joseph 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