<?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-20T22:42:46.391920+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/bdu:2026-16623</id>
    <title>bdu:2026-16623</title>
    <updated>2026-10-20T22:42:46.415910+00:00</updated>
    <content>bdu:2026-16623</content>
    <link href="https://db.gcve.eu/vuln/bdu:2026-16623"/>
  </entry>
  <entry>
    <id>https://db.gcve.eu/vuln/fkie_cve-2026-84312</id>
    <title>fkie_cve-2026-84312</title>
    <updated>2026-10-20T22:42:46.415963+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>Nginx UI is a web user interface for the Nginx web server. Prior to 2.4.1, GetCasdoorUri uses the configured Casdoor application name as a constant OAuth state value and CasdoorCallback does not compare the submitted state with a value bound to the initiating browser session. An unauthenticated attacker can cause a victim's browser to complete an attacker-controlled Casdoor authorization flow, and the callback can mint a Nginx UI session for the identity returned by that authorization code. This issue is fixed in version 2.4.1.</p>
      </div>
    </content>
    <link href="https://db.gcve.eu/vuln/fkie_cve-2026-84312"/>
  </entry>
  <entry>
    <id>https://db.gcve.eu/vuln/ghsa-44xr-mrhh-qm78</id>
    <title>GHSA-44xr-mrhh-qm78 — Nginx UI: Casdoor SSO callback uses a constant `state` parameter (login CSRF)</title>
    <updated>2026-10-20T22:42:46.416000+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Go: Nginx-UI</p>
<p>## Summary</p>
<p>In the Casdoor SSO flow, the OAuth `state` parameter is hard-coded to `settings.CasdoorSettings.Application` — a value identical for every user and every login. The callback handler accepts whatever `state` the client sends without comparing it to anything stored in the user agent, enabling a login-CSRF: an attacker can force the victim's browser to authenticate as the *attacker*.</p>
<p>## Details</p>
<p>`api/user/casdoor.go:92-117` (`GetCasdoorUri`):</p>
<p>```go
func GetCasdoorUri(c *gin.Context) {
    clientId := settings.CasdoorSettings.ClientId
    redirectUri := settings.CasdoorSettings.RedirectUri
    state := settings.CasdoorSettings.Application      // ← constant
    ...
    c.JSON(http.StatusOK, gin.H{
        "uri": fmt.Sprintf(
            "%s/login/oauth/authorize?client_id=%s&amp;response_type=code&amp;redirect_uri=%s&amp;state=%s&amp;scope=read",
            endpoint, clientId, encodedRedirectUri, state),
    })
}
```</p>
<p>`api/user/casdoor.go:24-90` (`CasdoorCallback`):</p>
<p>```go
type CasdoorLoginUser struct {
    Code  string `json:"code" binding:"required,max=255"`
    State string `json:"state" binding:"required,max=255"`
}</p>
<p>func CasdoorCallback(c *gin.Context) {
    var loginUser CasdoorLoginUser
    if !cosy.BindAndValid(c, &amp;loginUser) { return }
    ...
    // state is NEVER compared to a per-session value
    token, err := casdoorsdk.GetOAuthToken(loginUser.Code, loginUser.State)
    ...
    u, err := user.GetUser(claims.Name)        // username from Casdoor's JWT
    ...
    use…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/ghsa-44xr-mrhh-qm78"/>
  </entry>
</feed>
