security-review-bot
  • Joined on 2026-05-02
security-review-bot commented on pull request rodin/review-bot#72 2026-05-11 14:12:23 +00:00
fix(gitea): normalize "." path to empty string in ListContents

[MINOR] A new pull_request job ('test-dot-path') runs code from the PR with repository secrets (e.g., GPT_REVIEW_TOKEN, AICORE credentials) in the environment. If PRs from forks can trigger this workflow with secrets, a malicious change could exfiltrate them. Ensure secrets are not exposed to untrusted forks or gate this job to trusted actors only.

security-review-bot approved rodin/review-bot#69 2026-05-11 12:33:02 +00:00
feat(gitea): add retry logic for 5xx errors

Security Review

security-review-bot approved rodin/review-bot#69 2026-05-11 12:16:20 +00:00
feat(gitea): add retry logic for 5xx errors

Security Review

security-review-bot commented on pull request rodin/review-bot#69 2026-05-11 11:54:17 +00:00
feat(gitea): add retry logic for 5xx errors

[MINOR] Retry warning logs include the error object (lastError) which will render the API error message (truncated to 200 chars) and could expose portions of server error responses in logs. While bodies are size-limited and URLs are redacted, consider the operational sensitivity of logging server error content at WARN level.

security-review-bot approved rodin/review-bot#69 2026-05-11 11:54:17 +00:00
feat(gitea): add retry logic for 5xx errors

Security Review

security-review-bot commented on pull request rodin/review-bot#69 2026-05-11 11:33:50 +00:00
feat(gitea): add retry logic for 5xx errors

[MINOR] Retry warnings log the full request URL and the last error (which may include server-provided body text). While bodies are truncated and URLs here do not include auth, logging full URLs or server error content can inadvertently leak sensitive query parameters or details if future callers pass sensitive data in query strings. Consider redacting query parameters and limiting error detail in logs.

security-review-bot commented on pull request rodin/review-bot#69 2026-05-11 11:33:50 +00:00
feat(gitea): add retry logic for 5xx errors

[NIT] isRetriableSyscallError returns true for unknown underlying errors, causing retries even on potentially permanent failures. This is bounded and not a security issue, but could slightly increase request attempts against misconfigured endpoints. Consider restricting retries to known transient error classes.

security-review-bot approved rodin/review-bot#69 2026-05-11 11:33:50 +00:00
feat(gitea): add retry logic for 5xx errors

Security Review

security-review-bot approved rodin/review-bot#69 2026-05-11 11:24:36 +00:00
feat(gitea): add retry logic for 5xx errors

Security Review

security-review-bot approved rodin/review-bot#69 2026-05-11 08:09:18 +00:00
feat(gitea): add retry logic for 5xx errors

Security Review

security-review-bot commented on pull request rodin/review-bot#69 2026-05-11 08:02:20 +00:00
feat(gitea): add retry logic for 5xx errors

[MINOR] On non-2xx responses, the code reads the entire response body with io.ReadAll and stores it in APIError. This can allow a malicious or misbehaving server to force large allocations. Consider limiting the size for error bodies (e.g., io.LimitReader) since the body is only used for error context.

security-review-bot approved rodin/review-bot#69 2026-05-11 08:02:20 +00:00
feat(gitea): add retry logic for 5xx errors

Security Review

security-review-bot approved rodin/review-bot#67 2026-05-11 06:41:54 +00:00
docs: add read:user to required token scopes

Security Review

security-review-bot approved rodin/review-bot#65 2026-05-11 06:38:23 +00:00
feat: log loaded pattern files for debugging

Security Review

security-review-bot commented on pull request rodin/review-bot#63 2026-05-11 03:47:19 +00:00
fix: address remote persona review findings

[MINOR] Remote persona metadata (e.g., DisplayName) is now untrusted input and is later incorporated into the review body. If the Markdown renderer on the Gitea instance is misconfigured or insufficiently sanitizes HTML, this could enable content/HTML injection. Consider sanitizing or escaping persona.DisplayName before embedding it in Markdown.

security-review-bot approved rodin/review-bot#63 2026-05-11 03:47:19 +00:00
fix: address remote persona review findings

Security Review

security-review-bot commented on pull request rodin/review-bot#63 2026-05-11 03:47:19 +00:00
fix: address remote persona review findings

[MINOR] While individual persona files are size-limited and the file count is capped (50), YAML parsers can be susceptible to CPU blow-ups via alias/anchor expansion ('billion laughs'). Consider adding additional safeguards such as limiting alias expansions or total decode time/complexity when parsing YAML to reduce DoS risk.

security-review-bot commented on pull request rodin/review-bot#63 2026-05-11 03:47:19 +00:00
fix: address remote persona review findings

[NIT] isNotFoundError relies on substring matching for "HTTP 404". Although tightened compared to prior behavior, string matching is still fragile; if feasible without introducing dependencies, prefer structured status code checks from the underlying client to avoid misclassification.