7 comments

  • amiga38614 minutes ago
    You should change the URL to <a href="https:&#x2F;&#x2F;codeberg.org&#x2F;forgejo&#x2F;forgejo&#x2F;milestone&#x2F;139655" rel="nofollow">https:&#x2F;&#x2F;codeberg.org&#x2F;forgejo&#x2F;forgejo&#x2F;milestone&#x2F;139655</a><p>&gt; PR: Critical: fix: prevent template expansion from interfering with git repo initialization. When generating a new repository from a template repository, Forgejo clones the template repository, removes the .git folder, performs variable template expansion on files listed in .forgejo&#x2F;template, and initializes a new git repository. During this process, variable template expansion could be misused in order to create a new .git folder, which git would adopt and incorporate during its initialization of a new git repository. A malicious template repository could be used to read arbitrary data from the Forgejo host, and to execute arbitrary processes on the Forgejo host, as a remote code execution attack. To address this issue, after variable expansion is completed, any existing .git folder is removed from the directory before the git repository is initialized.
  • jzebedee15 minutes ago
    Relevant change:<p><pre><code> Security bug fixes PR: Critical: fix: prevent template expansion from interfering with git repo initialization. When generating a new repository from a template repository, Forgejo clones the template repository, removes the .git folder, performs variable template expansion on files listed in .forgejo&#x2F;template, and initializes a new git repository. During this process, variable template expansion could be misused in order to create a new .git folder, which git would adopt and incorporate during its initialization of a new git repository. A malicious template repository could be used to read arbitrary data from the Forgejo host, and to execute arbitrary processes on the Forgejo host, as a remote code execution attack. To address this issue, after variable expansion is completed, any existing .git folder is removed from the directory before the git repository is initialized.</code></pre>
    • hephaes7us11 minutes ago
      It looks like this is a bit less concerning if you have turned off open account registration.
  • Macha12 minutes ago
    Since the release notes is currently unreadable due to codeberg rate limits, the two fixes in the release notes are:<p><a href="https:&#x2F;&#x2F;codeberg.org&#x2F;forgejo&#x2F;forgejo&#x2F;pulls&#x2F;14301" rel="nofollow">https:&#x2F;&#x2F;codeberg.org&#x2F;forgejo&#x2F;forgejo&#x2F;pulls&#x2F;14301</a>:<p>*Critical:* fix: prevent template expansion from interfering with git repo initialization. When generating a new repository from a template repository, Forgejo clones the template repository, removes the `.git` folder, performs variable template expansion on files listed in `.forgejo&#x2F;template`, and initializes a new git repository. During this process, variable template expansion could be misused in order to create a new `.git` folder, which git would adopt and incorporate during its initialization of a new git repository. A malicious template repository could be used to read arbitrary data from the Forgejo host, and to execute arbitrary processes on the Forgejo host, as a remote code execution attack. To address this issue, after variable expansion is completed, any existing `.git` folder is removed from the directory before the git repository is initialized.<p><a href="https:&#x2F;&#x2F;codeberg.org&#x2F;forgejo&#x2F;forgejo&#x2F;pulls&#x2F;14301" rel="nofollow">https:&#x2F;&#x2F;codeberg.org&#x2F;forgejo&#x2F;forgejo&#x2F;pulls&#x2F;14301</a>:<p>ensure authorization reducer is accessed when checking editable PRs in APIs. When editing a git repo contents through Forgejo&#x27;s API, a specialized security control is used to permit repository maintainers to edit branches that they do not own when an open pull request with the &quot;allow maintainer edit&quot; option is present. This specialized security control did not take into account API-specific security restrictions, such as repo-specific access tokens. As a result, it was possible for an API access token with restricted permission to make modifications outside of that restricted permission. The specialized security control has been updated to take into account API authentication security restrictions.<p>---<p>So if like me you run a private forgejo instance with closed signups and limited repository creation, you can wait for the update. Otherwise maybe take it off the public internet for a bit?
  • rcleveng19 minutes ago
    ``` This git endpoint is seeing a high influx of requests for this repository, to preserve the availability of Codeberg your search request will not be processed. Sorry for the inconvenience and please try again later. ```<p>Any mirror?
    • sbx32014 minutes ago
      The PR is still accessible <a href="https:&#x2F;&#x2F;codeberg.org&#x2F;forgejo&#x2F;forgejo&#x2F;pulls&#x2F;14300" rel="nofollow">https:&#x2F;&#x2F;codeberg.org&#x2F;forgejo&#x2F;forgejo&#x2F;pulls&#x2F;14300</a><p><pre><code> Critical: fix: prevent template expansion from interfering with git repo initialization. When generating a new repository from a template repository, Forgejo clones the template repository, removes the .git folder, performs variable template expansion on files listed in .forgejo&#x2F;template, and initializes a new git repository. During this process, variable template expansion could be misused in order to create a new .git folder, which git would adopt and incorporate during its initialization of a new git repository. A malicious template repository could be used to read arbitrary data from the Forgejo host, and to execute arbitrary processes on the Forgejo host, as a remote code execution attack. To address this issue, after variable expansion is completed, any existing .git folder is removed from the directory before the git repository is initialized.</code></pre>
  • PaoloBarbolini14 minutes ago
    If you are self-hosting Forgejo and haven&#x27;t done it yet, consider creating a Codeberg account and following <a href="https:&#x2F;&#x2F;codeberg.org&#x2F;forgejo&#x2F;security-announcements&#x2F;issues" rel="nofollow">https:&#x2F;&#x2F;codeberg.org&#x2F;forgejo&#x2F;security-announcements&#x2F;issues</a>
  • Sphax14 minutes ago
    Can&#x27;t load the page but hopefully it&#x27;s on an endpoint sitting behind my Tinyauth protection.