Find real bugs
Security, logic, and API contracts.
DOS Code Review / Built for GitHub
Catch security gaps, broken logic, and API regressions. Get evidence and suggested fixes, right in your GitHub pull request.
Connect your GitHub repositories.
Scope order access to its owner #42
Original diff
async function getOrder(req) {
return db.orders.find(req.params.id)
}
IMPORTANT · Missing owner authorization
Any signed-in user can read another user's order.
Challenged by the CriticSecurity, logic, and API contracts.
Candidate findings go to the Critic for verification.
Inline comments, suggested fixes, your repo rules.
Beyond a green check
Explore three small changes with real consequences. Each example connects the code to the failure it can cause.
api/orders.ts
- db.orders.find({ id: req.params.id })+ db.orders.find({
+ id: req.params.id,
+ userId: req.user.id
+ })What breaks
Looking up an order by ID alone lets one signed-in user access another user's order.
What to change
Bind the lookup to the authenticated owner.
Fits your repository
Give the reviewer the context your team uses. Keep discussion, suggestions, and merge decisions in your existing workflow.
.dos/review.mdRepository guidanceReview on demand
Ask for another review, discuss a finding, or request a fix proposal in the PR.
/review/fix/describe@dos Explain why this lookup needs an owner check.Choose your repositories.
Reviewer checks the diff. Critic verifies candidate findings.
Apply useful fixes. You own the merge.
Evidence before advice
Inspects the diff and identifies candidate defects.
Challenges candidate findings against the code and failure scenario.
Keeps actionable findings and fix proposals beside the changed lines.
The Critic runs when the Reviewer has candidate findings. Your team decides what to apply and merge.
It adds another review layer. Your team still owns design decisions, test coverage, and the final merge.
Findings and fix proposals appear in GitHub. You decide which suggestions to apply; Code Review does not automatically commit or merge them.
Yes. Add .dos/review.md for repository-specific guidance, and manage connected repositories and review settings in the dashboard.