### Summary
The AddTime API handler continues execution after an error returned by `GetUserByName()`.
When a repository administrator specifies a non-existent user name, an error response is generated but execution does not stop. Subsequent code dereferences a nil user pointer, resulting in a runtime panic.
### Details
Affected endpoint:
```http
POST /api/v1/repos/{owner}/{repo}/issues/{index}/times
```
Affected file:
```text
routers/api/v1/repo/issue_tracked_time.go
```
Relevant code:
```go
user, err = user_model.GetUserByName(ctx, form.User)
if err != nil {
ctx.APIErrorInternal(err)
// missing return
}
```
Execution continues to:
```go
trackedTime, err := issues_model.AddTime(
ctx,
user,
issue,
form.Time,
created,
)
```
When `GetUserByName()` fails, `user` is nil.
The subsequent call dereferences the nil pointer and triggers a runtime panic.
### Proof of Concept
Using a repository administrator account:
```http
POST /api/v1/repos/owner/repo/issues/1/times
Content-Type: application/json
{
"time": 3600,
"user_name": "nonexistent_user_xyz"
}
```
Result:
```text
HTTP 500
runtime error: invalid memory address or nil pointer dereference
```
The stack trace indicates execution reaches the AddTime code path with a nil user object.
### Impact
An authenticated repository administrator can repeatedly trigger server-side panics through the affected endpoint.
Depending on deployment configuration and panic recovery behavior, this may result in request failures, stack trace disclosure, excessive log generation, or degraded service availability.
### Suggested Fix
Add a return statement after the error response:
```go
user, err = user_model.GetUserByName(ctx, form.User)
if err != nil {
ctx.APIErrorInternal(err)
return
}
```
EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON.
Original publisher date fields
datePublished: Aug 13, 2026, 4:44:40 PM
dateUpdated: Aug 14, 2026, 5:40:25 PM
1 related source bulletins · separate from aliases
WID-SEC-W-2026-2304: Gitea: Mehrere Schwachstellen
No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.
NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.
Source analysis status: Deferred
Weakness classifications: CWE-284
Original publisher date fields
published: 2026-08-13T17:17:24.857
lastModified: 2026-08-26T16:53:48.300
No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.