<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-02T01:07:42.808095+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://db.gcve.eu/vuln/fkie_cve-2026-44426</id>
    <title>fkie_cve-2026-44426</title>
    <updated>2026-10-02T01:07:42.829628+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>ShellHub is a centralized SSH gateway. Prior to 0.24.2, GET /api/namespaces/:tenant returns the full namespace object — including
the members list (user IDs, e-mails, roles), settings, and device counts — to any caller authenticated by an API Key, for any tenant, regardless of the API Key's own tenant scope. The handler conditionally skips the membership check when the user ID (X-ID) is absent, which is exactly the case for API Key authentication. This vulnerability is fixed in 0.24.2.</p>
      </div>
    </content>
    <link href="https://db.gcve.eu/vuln/fkie_cve-2026-44426"/>
  </entry>
  <entry>
    <id>https://db.gcve.eu/vuln/ghsa-vwx9-7qcf-gg7f</id>
    <title>GHSA-vwx9-7qcf-gg7f — ShellHub has cross-tenant IDOR in `GET /api/namespaces/:tenant` via API Key bypasses  membership check</title>
    <updated>2026-10-02T01:07:42.829705+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Go: github.com/shellhub-io/shellhub</p>
<p>## Summary
`GET /api/namespaces/:tenant` returns the full namespace object — including the members list (user IDs, e-mails, roles), settings, and device counts — to any caller authenticated by an **API Key**, for any tenant, regardless of the API Key's own tenant scope.</p>
<p>The handler conditionally skips the membership check when the user ID (`X-ID`) is absent, which is exactly the case for API Key authentication.</p>
<p>## Affected versions
ShellHub Community v0.24.1 (validated).</p>
<p>## Root cause
`api/routes/nsadm.go:75-102` — membership check is skipped when `c.ID()` is nil:</p>
<p>```go
  var uid string
  if c.ID() != nil {
      uid = c.ID().ID
  }</p>
<p>ns, err := h.service.GetNamespace(c.Ctx(), req.Tenant)
  if err != nil || ns == nil {
      return c.NoContent(http.StatusNotFound)
  }</p>
<p>if uid != "" {                              // ⚠️ skipped when API Key is used
      if _, ok := ns.FindMember(uid); !ok {
          return c.NoContent(http.StatusForbidden)
      }
  }</p>
<p>return c.JSON(http.StatusOK, ns)
  ```</p>
<p>`AuthRequest` (`api/routes/auth.go:53-64`) sets only `X-Tenant-ID`, `X-Role`,
  and `X-API-KEY` for API Key authentication — never `X-ID`. So
  `c.Request().Header.Get("X-ID")` returns `""`, `c.ID()` returns `nil`, and
  the membership check is bypassed.</p>
<p>## Proof of concept (validated live against v0.24.1)</p>
<p>```bash
  # Attacker authenticates in their own namespace and mints an API Key
  ATTACKER_TOKEN=$(curl -s -X POST http://target/api/login \
    -H 'Content-Type: appli…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/ghsa-vwx9-7qcf-gg7f"/>
  </entry>
</feed>
