[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-sentry-django-access-review":3,"mdc-804z46-key":41,"related-org-sentry-django-access-review":1674,"related-repo-sentry-django-access-review":1838},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":12,"stars":29,"repoUrl":30,"updatedAt":31,"license":32,"forks":33,"topics":34,"repo":36,"sourceUrl":39,"mdContent":40},"django-access-review","review Django access control and IDOR","Django access control and IDOR security review. Use when reviewing Django views, DRF viewsets, ORM queries, or any Python\u002FDjango code handling user authorization. Trigger keywords: \"IDOR\", \"access control\", \"authorization\", \"Django permissions\", \"object permissions\", \"tenant isolation\", \"broken access\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},"sentry","Sentry","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fsentry.png","getsentry",[13,17,20,23,26],{"name":14,"slug":15,"type":16},"Security","security","tag",{"name":18,"slug":19,"type":16},"Django","django",{"name":21,"slug":22,"type":16},"Python","python",{"name":24,"slug":25,"type":16},"Access Control","access-control",{"name":27,"slug":28,"type":16},"Code Analysis","code-analysis",861,"https:\u002F\u002Fgithub.com\u002Fgetsentry\u002Fskills","2026-05-15T06:16:43.098698","LICENSE",45,[35],"tag-production",{"repoUrl":30,"stars":29,"forks":33,"topics":37,"description":38},[35],"Agent Skills used by the Sentry team for development.","https:\u002F\u002Fgithub.com\u002Fgetsentry\u002Fskills\u002Ftree\u002FHEAD\u002Fskills\u002Fdjango-access-review","---\nname: django-access-review\ndescription: 'Django access control and IDOR security review. Use when reviewing Django views, DRF viewsets, ORM queries, or any Python\u002FDjango code handling user authorization. Trigger keywords: \"IDOR\", \"access control\", \"authorization\", \"Django permissions\", \"object permissions\", \"tenant isolation\", \"broken access\".'\nallowed-tools: Read, Grep, Glob, Bash, Task\nlicense: LICENSE\n---\n\n\u003C!--\nReference material based on OWASP Cheat Sheet Series (CC BY-SA 4.0)\nhttps:\u002F\u002Fcheatsheetseries.owasp.org\u002F\n-->\n\n# Django Access Control & IDOR Review\n\nFind access control vulnerabilities by investigating how the codebase answers one question:\n\n**Can User A access, modify, or delete User B's data?**\n\n## Philosophy: Investigation Over Pattern Matching\n\nDo NOT scan for predefined vulnerable patterns. Instead:\n\n1. **Understand** how authorization works in THIS codebase\n2. **Ask questions** about specific data flows\n3. **Trace code** to find where (or if) access checks happen\n4. **Report** only what you've confirmed through investigation\n\nEvery codebase implements authorization differently. Your job is to understand this specific implementation, then find gaps.\n\n---\n\n## Phase 1: Understand the Authorization Model\n\nBefore looking for bugs, answer these questions about the codebase:\n\n### How is authorization enforced?\n\nResearch the codebase to find:\n\n```\n□ Where are permission checks implemented?\n  - Decorators? (@login_required, @permission_required, custom?)\n  - Middleware? (TenantMiddleware, AuthorizationMiddleware?)\n  - Base classes? (BaseAPIView, TenantScopedViewSet?)\n  - Permission classes? (DRF permission_classes?)\n  - Custom mixins? (OwnershipMixin, TenantMixin?)\n\n□ How are queries scoped?\n  - Custom managers? (TenantManager, UserScopedManager?)\n  - get_queryset() overrides?\n  - Middleware that sets query context?\n\n□ What's the ownership model?\n  - Single user ownership? (document.owner_id)\n  - Organization\u002Ftenant ownership? (document.organization_id)\n  - Hierarchical? (org -> team -> user -> resource)\n  - Role-based within context? (org admin vs member)\n```\n\n### Investigation commands\n\n```bash\n# Find how auth is typically done\ngrep -rn \"permission_classes\\|@login_required\\|@permission_required\" --include=\"*.py\" | head -20\n\n# Find base classes that views inherit from\ngrep -rn \"class Base.*View\\|class.*Mixin.*:\" --include=\"*.py\" | head -20\n\n# Find custom managers\ngrep -rn \"class.*Manager\\|def get_queryset\" --include=\"*.py\" | head -20\n\n# Find ownership fields on models\ngrep -rn \"owner\\|user_id\\|organization\\|tenant\" --include=\"models.py\" | head -30\n```\n\n**Do not proceed until you understand the authorization model.**\n\n---\n\n## Phase 2: Map the Attack Surface\n\nIdentify endpoints that handle user-specific data:\n\n### What resources exist?\n\n```\n□ What models contain user data?\n□ Which have ownership fields (owner_id, user_id, organization_id)?\n□ Which are accessed via ID in URLs or request bodies?\n```\n\n### What operations are exposed?\n\nFor each resource, map:\n- List endpoints - what data is returned?\n- Detail\u002Fretrieve endpoints - how is the object fetched?\n- Create endpoints - who sets the owner?\n- Update endpoints - can users modify others' data?\n- Delete endpoints - can users delete others' data?\n- Custom actions - what do they access?\n\n---\n\n## Phase 3: Ask Questions and Investigate\n\nFor each endpoint that handles user data, ask:\n\n### The Core Question\n\n**\"If I'm User A and I know the ID of User B's resource, can I access it?\"**\n\nTrace the code to answer this:\n\n```\n1. Where does the resource ID enter the system?\n   - URL path: \u002Fapi\u002Fdocuments\u002F{id}\u002F\n   - Query param: ?document_id=123\n   - Request body: {\"document_id\": 123}\n\n2. Where is that ID used to fetch data?\n   - Find the ORM query or database call\n\n3. Between (1) and (2), what checks exist?\n   - Is the query scoped to current user?\n   - Is there an explicit ownership check?\n   - Is there a permission check on the object?\n   - Does a base class or mixin enforce access?\n\n4. If you can't find a check, is there one you missed?\n   - Check parent classes\n   - Check middleware\n   - Check managers\n   - Check decorators at URL level\n```\n\n### Follow-Up Questions\n\n```\n□ For list endpoints: Does the query filter to user's data, or return everything?\n\n□ For create endpoints: Who sets the owner - the server or the request?\n\n□ For bulk operations: Are they scoped to user's data?\n\n□ For related resources: If I can access a document, can I access its comments?\n  What if the document belongs to someone else?\n\n□ For tenant\u002Forg resources: Can User in Org A access Org B's data by changing\n  the org_id in the URL?\n```\n\n---\n\n## Phase 4: Trace Specific Flows\n\nPick a concrete endpoint and trace it completely.\n\n### Example Investigation\n\n```\nEndpoint: GET \u002Fapi\u002Fdocuments\u002F{pk}\u002F\n\n1. Find the view handling this URL\n   → DocumentViewSet.retrieve() in api\u002Fviews.py\n\n2. Check what DocumentViewSet inherits from\n   → class DocumentViewSet(viewsets.ModelViewSet)\n   → No custom base class with authorization\n\n3. Check permission_classes\n   → permission_classes = [IsAuthenticated]\n   → Only checks login, not ownership\n\n4. Check get_queryset()\n   → def get_queryset(self):\n   →     return Document.objects.all()\n   → Returns ALL documents!\n\n5. Check for has_object_permission()\n   → Not implemented\n\n6. Check retrieve() method\n   → Uses default, which calls get_object()\n   → get_object() uses get_queryset(), which returns all\n\n7. Conclusion: IDOR - Any authenticated user can access any document\n```\n\n### What to look for when tracing\n\n```\nPotential gap indicators (investigate further, don't auto-flag):\n- get_queryset() returns .all() or filters without user\n- Direct Model.objects.get(pk=pk) without ownership in query\n- ID comes from request body for sensitive operations\n- Permission class checks auth but not ownership\n- No has_object_permission() and queryset isn't scoped\n\nLikely safe patterns (but verify the implementation):\n- get_queryset() filters by request.user or user's org\n- Custom permission class with has_object_permission()\n- Base class that enforces scoping\n- Manager that auto-filters\n```\n\n---\n\n## Phase 5: Report Findings\n\nOnly report issues you've confirmed through investigation.\n\n### Confidence Levels\n\n| Level | Meaning | Action |\n|-------|---------|--------|\n| **HIGH** | Traced the flow, confirmed no check exists | Report with evidence |\n| **MEDIUM** | Check may exist but couldn't confirm | Note for manual verification |\n| **LOW** | Theoretical, likely mitigated | Do not report |\n\n### Suggested Fixes Must Enforce, Not Document\n\n**Bad fix**: Adding a comment saying \"caller must validate permissions\"\n**Good fix**: Adding code that actually validates permissions\n\nA comment or docstring does not enforce authorization. Your suggested fix must include actual code that:\n- Validates the user has permission before proceeding\n- Raises an exception or returns an error if unauthorized\n- Makes unauthorized access impossible, not just discouraged\n\nExample of a BAD fix suggestion:\n```python\ndef get_resource(resource_id):\n    # IMPORTANT: Caller must ensure user has access to this resource\n    return Resource.objects.get(pk=resource_id)\n```\n\nExample of a GOOD fix suggestion:\n```python\ndef get_resource(resource_id, user):\n    resource = Resource.objects.get(pk=resource_id)\n    if resource.owner_id != user.id:\n        raise PermissionDenied(\"Access denied\")\n    return resource\n```\n\nIf you can't determine the right enforcement mechanism, say so - but never suggest documentation as the fix.\n\n### Report Format\n\n```markdown\n## Access Control Review: [Component]\n\n### Authorization Model\n[Brief description of how this codebase handles authorization]\n\n### Findings\n\n#### [IDOR-001] [Title] (Severity: High\u002FMedium)\n- **Location**: `path\u002Fto\u002Ffile.py:123`\n- **Confidence**: High - confirmed through code tracing\n- **The Question**: Can User A access User B's documents?\n- **Investigation**:\n  1. Traced GET \u002Fapi\u002Fdocuments\u002F{pk}\u002F to DocumentViewSet\n  2. Checked get_queryset() - returns Document.objects.all()\n  3. Checked permission_classes - only IsAuthenticated\n  4. Checked for has_object_permission() - not implemented\n  5. Verified no relevant middleware or base class checks\n- **Evidence**: [Code snippet showing the gap]\n- **Impact**: Any authenticated user can read any document by ID\n- **Suggested Fix**: [Code that enforces authorization - NOT a comment]\n\n### Needs Manual Verification\n[Issues where authorization exists but couldn't confirm effectiveness]\n\n### Areas Not Reviewed\n[Endpoints or flows not covered in this review]\n```\n\n---\n\n## Common Django Authorization Patterns\n\nThese are patterns you might find - not a checklist to match against.\n\n### Query Scoping\n```python\n# Scoped to user\nDocument.objects.filter(owner=request.user)\n\n# Scoped to organization\nDocument.objects.filter(organization=request.user.organization)\n\n# Using a custom manager\nDocument.objects.for_user(request.user)  # Investigate what this does\n```\n\n### Permission Enforcement\n```python\n# DRF permission classes\npermission_classes = [IsAuthenticated, IsOwner]\n\n# Custom has_object_permission\ndef has_object_permission(self, request, view, obj):\n    return obj.owner == request.user\n\n# Django decorators\n@permission_required('app.view_document')\n\n# Manual checks\nif document.owner != request.user:\n    raise PermissionDenied()\n```\n\n### Ownership Assignment\n```python\n# Server-side (safe)\ndef perform_create(self, serializer):\n    serializer.save(owner=self.request.user)\n\n# From request (investigate)\nserializer.save(**request.data)  # Does request.data include owner?\n```\n\n---\n\n## Investigation Checklist\n\nUse this to guide your review, not as a pass\u002Ffail checklist:\n\n```\n□ I understand how authorization is typically implemented in this codebase\n□ I've identified the ownership model (user, org, tenant, etc.)\n□ I've mapped the key endpoints that handle user data\n□ For each sensitive endpoint, I've traced the flow and asked:\n  - Where does the ID come from?\n  - Where is data fetched?\n  - What checks exist between input and data access?\n□ I've verified my findings by checking parent classes and middleware\n□ I've only reported issues I've confirmed through investigation\n```\n",{"data":42,"body":44},{"name":4,"description":6,"allowed-tools":43,"license":32},"Read, Grep, Glob, Bash, Task",{"type":45,"children":46},"root",[47,56,62,71,78,83,128,133,137,143,148,155,160,173,179,479,487,490,496,501,507,516,522,527,561,564,570,575,581,589,594,603,609,618,621,627,632,638,647,653,662,665,671,676,682,778,784,801,806,824,829,861,866,913,918,924,1382,1385,1391,1396,1402,1471,1477,1585,1591,1645,1648,1654,1659,1668],{"type":48,"tag":49,"props":50,"children":52},"element","h1",{"id":51},"django-access-control-idor-review",[53],{"type":54,"value":55},"text","Django Access Control & IDOR Review",{"type":48,"tag":57,"props":58,"children":59},"p",{},[60],{"type":54,"value":61},"Find access control vulnerabilities by investigating how the codebase answers one question:",{"type":48,"tag":57,"props":63,"children":64},{},[65],{"type":48,"tag":66,"props":67,"children":68},"strong",{},[69],{"type":54,"value":70},"Can User A access, modify, or delete User B's data?",{"type":48,"tag":72,"props":73,"children":75},"h2",{"id":74},"philosophy-investigation-over-pattern-matching",[76],{"type":54,"value":77},"Philosophy: Investigation Over Pattern Matching",{"type":48,"tag":57,"props":79,"children":80},{},[81],{"type":54,"value":82},"Do NOT scan for predefined vulnerable patterns. Instead:",{"type":48,"tag":84,"props":85,"children":86},"ol",{},[87,98,108,118],{"type":48,"tag":88,"props":89,"children":90},"li",{},[91,96],{"type":48,"tag":66,"props":92,"children":93},{},[94],{"type":54,"value":95},"Understand",{"type":54,"value":97}," how authorization works in THIS codebase",{"type":48,"tag":88,"props":99,"children":100},{},[101,106],{"type":48,"tag":66,"props":102,"children":103},{},[104],{"type":54,"value":105},"Ask questions",{"type":54,"value":107}," about specific data flows",{"type":48,"tag":88,"props":109,"children":110},{},[111,116],{"type":48,"tag":66,"props":112,"children":113},{},[114],{"type":54,"value":115},"Trace code",{"type":54,"value":117}," to find where (or if) access checks happen",{"type":48,"tag":88,"props":119,"children":120},{},[121,126],{"type":48,"tag":66,"props":122,"children":123},{},[124],{"type":54,"value":125},"Report",{"type":54,"value":127}," only what you've confirmed through investigation",{"type":48,"tag":57,"props":129,"children":130},{},[131],{"type":54,"value":132},"Every codebase implements authorization differently. Your job is to understand this specific implementation, then find gaps.",{"type":48,"tag":134,"props":135,"children":136},"hr",{},[],{"type":48,"tag":72,"props":138,"children":140},{"id":139},"phase-1-understand-the-authorization-model",[141],{"type":54,"value":142},"Phase 1: Understand the Authorization Model",{"type":48,"tag":57,"props":144,"children":145},{},[146],{"type":54,"value":147},"Before looking for bugs, answer these questions about the codebase:",{"type":48,"tag":149,"props":150,"children":152},"h3",{"id":151},"how-is-authorization-enforced",[153],{"type":54,"value":154},"How is authorization enforced?",{"type":48,"tag":57,"props":156,"children":157},{},[158],{"type":54,"value":159},"Research the codebase to find:",{"type":48,"tag":161,"props":162,"children":166},"pre",{"className":163,"code":165,"language":54},[164],"language-text","□ Where are permission checks implemented?\n  - Decorators? (@login_required, @permission_required, custom?)\n  - Middleware? (TenantMiddleware, AuthorizationMiddleware?)\n  - Base classes? (BaseAPIView, TenantScopedViewSet?)\n  - Permission classes? (DRF permission_classes?)\n  - Custom mixins? (OwnershipMixin, TenantMixin?)\n\n□ How are queries scoped?\n  - Custom managers? (TenantManager, UserScopedManager?)\n  - get_queryset() overrides?\n  - Middleware that sets query context?\n\n□ What's the ownership model?\n  - Single user ownership? (document.owner_id)\n  - Organization\u002Ftenant ownership? (document.organization_id)\n  - Hierarchical? (org -> team -> user -> resource)\n  - Role-based within context? (org admin vs member)\n",[167],{"type":48,"tag":168,"props":169,"children":171},"code",{"__ignoreMap":170},"",[172],{"type":54,"value":165},{"type":48,"tag":149,"props":174,"children":176},{"id":175},"investigation-commands",[177],{"type":54,"value":178},"Investigation commands",{"type":48,"tag":161,"props":180,"children":184},{"className":181,"code":182,"language":183,"meta":170,"style":170},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# Find how auth is typically done\ngrep -rn \"permission_classes\\|@login_required\\|@permission_required\" --include=\"*.py\" | head -20\n\n# Find base classes that views inherit from\ngrep -rn \"class Base.*View\\|class.*Mixin.*:\" --include=\"*.py\" | head -20\n\n# Find custom managers\ngrep -rn \"class.*Manager\\|def get_queryset\" --include=\"*.py\" | head -20\n\n# Find ownership fields on models\ngrep -rn \"owner\\|user_id\\|organization\\|tenant\" --include=\"models.py\" | head -30\n","bash",[185],{"type":48,"tag":168,"props":186,"children":187},{"__ignoreMap":170},[188,200,265,275,284,337,345,354,407,415,424],{"type":48,"tag":189,"props":190,"children":193},"span",{"class":191,"line":192},"line",1,[194],{"type":48,"tag":189,"props":195,"children":197},{"style":196},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[198],{"type":54,"value":199},"# Find how auth is typically done\n",{"type":48,"tag":189,"props":201,"children":203},{"class":191,"line":202},2,[204,210,216,222,227,232,237,241,246,250,255,260],{"type":48,"tag":189,"props":205,"children":207},{"style":206},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[208],{"type":54,"value":209},"grep",{"type":48,"tag":189,"props":211,"children":213},{"style":212},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[214],{"type":54,"value":215}," -rn",{"type":48,"tag":189,"props":217,"children":219},{"style":218},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[220],{"type":54,"value":221}," \"",{"type":48,"tag":189,"props":223,"children":224},{"style":212},[225],{"type":54,"value":226},"permission_classes\\|@login_required\\|@permission_required",{"type":48,"tag":189,"props":228,"children":229},{"style":218},[230],{"type":54,"value":231},"\"",{"type":48,"tag":189,"props":233,"children":234},{"style":212},[235],{"type":54,"value":236}," --include=",{"type":48,"tag":189,"props":238,"children":239},{"style":218},[240],{"type":54,"value":231},{"type":48,"tag":189,"props":242,"children":243},{"style":212},[244],{"type":54,"value":245},"*.py",{"type":48,"tag":189,"props":247,"children":248},{"style":218},[249],{"type":54,"value":231},{"type":48,"tag":189,"props":251,"children":252},{"style":218},[253],{"type":54,"value":254}," |",{"type":48,"tag":189,"props":256,"children":257},{"style":206},[258],{"type":54,"value":259}," head",{"type":48,"tag":189,"props":261,"children":262},{"style":212},[263],{"type":54,"value":264}," -20\n",{"type":48,"tag":189,"props":266,"children":268},{"class":191,"line":267},3,[269],{"type":48,"tag":189,"props":270,"children":272},{"emptyLinePlaceholder":271},true,[273],{"type":54,"value":274},"\n",{"type":48,"tag":189,"props":276,"children":278},{"class":191,"line":277},4,[279],{"type":48,"tag":189,"props":280,"children":281},{"style":196},[282],{"type":54,"value":283},"# Find base classes that views inherit from\n",{"type":48,"tag":189,"props":285,"children":287},{"class":191,"line":286},5,[288,292,296,300,305,309,313,317,321,325,329,333],{"type":48,"tag":189,"props":289,"children":290},{"style":206},[291],{"type":54,"value":209},{"type":48,"tag":189,"props":293,"children":294},{"style":212},[295],{"type":54,"value":215},{"type":48,"tag":189,"props":297,"children":298},{"style":218},[299],{"type":54,"value":221},{"type":48,"tag":189,"props":301,"children":302},{"style":212},[303],{"type":54,"value":304},"class Base.*View\\|class.*Mixin.*:",{"type":48,"tag":189,"props":306,"children":307},{"style":218},[308],{"type":54,"value":231},{"type":48,"tag":189,"props":310,"children":311},{"style":212},[312],{"type":54,"value":236},{"type":48,"tag":189,"props":314,"children":315},{"style":218},[316],{"type":54,"value":231},{"type":48,"tag":189,"props":318,"children":319},{"style":212},[320],{"type":54,"value":245},{"type":48,"tag":189,"props":322,"children":323},{"style":218},[324],{"type":54,"value":231},{"type":48,"tag":189,"props":326,"children":327},{"style":218},[328],{"type":54,"value":254},{"type":48,"tag":189,"props":330,"children":331},{"style":206},[332],{"type":54,"value":259},{"type":48,"tag":189,"props":334,"children":335},{"style":212},[336],{"type":54,"value":264},{"type":48,"tag":189,"props":338,"children":340},{"class":191,"line":339},6,[341],{"type":48,"tag":189,"props":342,"children":343},{"emptyLinePlaceholder":271},[344],{"type":54,"value":274},{"type":48,"tag":189,"props":346,"children":348},{"class":191,"line":347},7,[349],{"type":48,"tag":189,"props":350,"children":351},{"style":196},[352],{"type":54,"value":353},"# Find custom managers\n",{"type":48,"tag":189,"props":355,"children":357},{"class":191,"line":356},8,[358,362,366,370,375,379,383,387,391,395,399,403],{"type":48,"tag":189,"props":359,"children":360},{"style":206},[361],{"type":54,"value":209},{"type":48,"tag":189,"props":363,"children":364},{"style":212},[365],{"type":54,"value":215},{"type":48,"tag":189,"props":367,"children":368},{"style":218},[369],{"type":54,"value":221},{"type":48,"tag":189,"props":371,"children":372},{"style":212},[373],{"type":54,"value":374},"class.*Manager\\|def get_queryset",{"type":48,"tag":189,"props":376,"children":377},{"style":218},[378],{"type":54,"value":231},{"type":48,"tag":189,"props":380,"children":381},{"style":212},[382],{"type":54,"value":236},{"type":48,"tag":189,"props":384,"children":385},{"style":218},[386],{"type":54,"value":231},{"type":48,"tag":189,"props":388,"children":389},{"style":212},[390],{"type":54,"value":245},{"type":48,"tag":189,"props":392,"children":393},{"style":218},[394],{"type":54,"value":231},{"type":48,"tag":189,"props":396,"children":397},{"style":218},[398],{"type":54,"value":254},{"type":48,"tag":189,"props":400,"children":401},{"style":206},[402],{"type":54,"value":259},{"type":48,"tag":189,"props":404,"children":405},{"style":212},[406],{"type":54,"value":264},{"type":48,"tag":189,"props":408,"children":410},{"class":191,"line":409},9,[411],{"type":48,"tag":189,"props":412,"children":413},{"emptyLinePlaceholder":271},[414],{"type":54,"value":274},{"type":48,"tag":189,"props":416,"children":418},{"class":191,"line":417},10,[419],{"type":48,"tag":189,"props":420,"children":421},{"style":196},[422],{"type":54,"value":423},"# Find ownership fields on models\n",{"type":48,"tag":189,"props":425,"children":427},{"class":191,"line":426},11,[428,432,436,440,445,449,453,457,462,466,470,474],{"type":48,"tag":189,"props":429,"children":430},{"style":206},[431],{"type":54,"value":209},{"type":48,"tag":189,"props":433,"children":434},{"style":212},[435],{"type":54,"value":215},{"type":48,"tag":189,"props":437,"children":438},{"style":218},[439],{"type":54,"value":221},{"type":48,"tag":189,"props":441,"children":442},{"style":212},[443],{"type":54,"value":444},"owner\\|user_id\\|organization\\|tenant",{"type":48,"tag":189,"props":446,"children":447},{"style":218},[448],{"type":54,"value":231},{"type":48,"tag":189,"props":450,"children":451},{"style":212},[452],{"type":54,"value":236},{"type":48,"tag":189,"props":454,"children":455},{"style":218},[456],{"type":54,"value":231},{"type":48,"tag":189,"props":458,"children":459},{"style":212},[460],{"type":54,"value":461},"models.py",{"type":48,"tag":189,"props":463,"children":464},{"style":218},[465],{"type":54,"value":231},{"type":48,"tag":189,"props":467,"children":468},{"style":218},[469],{"type":54,"value":254},{"type":48,"tag":189,"props":471,"children":472},{"style":206},[473],{"type":54,"value":259},{"type":48,"tag":189,"props":475,"children":476},{"style":212},[477],{"type":54,"value":478}," -30\n",{"type":48,"tag":57,"props":480,"children":481},{},[482],{"type":48,"tag":66,"props":483,"children":484},{},[485],{"type":54,"value":486},"Do not proceed until you understand the authorization model.",{"type":48,"tag":134,"props":488,"children":489},{},[],{"type":48,"tag":72,"props":491,"children":493},{"id":492},"phase-2-map-the-attack-surface",[494],{"type":54,"value":495},"Phase 2: Map the Attack Surface",{"type":48,"tag":57,"props":497,"children":498},{},[499],{"type":54,"value":500},"Identify endpoints that handle user-specific data:",{"type":48,"tag":149,"props":502,"children":504},{"id":503},"what-resources-exist",[505],{"type":54,"value":506},"What resources exist?",{"type":48,"tag":161,"props":508,"children":511},{"className":509,"code":510,"language":54},[164],"□ What models contain user data?\n□ Which have ownership fields (owner_id, user_id, organization_id)?\n□ Which are accessed via ID in URLs or request bodies?\n",[512],{"type":48,"tag":168,"props":513,"children":514},{"__ignoreMap":170},[515],{"type":54,"value":510},{"type":48,"tag":149,"props":517,"children":519},{"id":518},"what-operations-are-exposed",[520],{"type":54,"value":521},"What operations are exposed?",{"type":48,"tag":57,"props":523,"children":524},{},[525],{"type":54,"value":526},"For each resource, map:",{"type":48,"tag":528,"props":529,"children":530},"ul",{},[531,536,541,546,551,556],{"type":48,"tag":88,"props":532,"children":533},{},[534],{"type":54,"value":535},"List endpoints - what data is returned?",{"type":48,"tag":88,"props":537,"children":538},{},[539],{"type":54,"value":540},"Detail\u002Fretrieve endpoints - how is the object fetched?",{"type":48,"tag":88,"props":542,"children":543},{},[544],{"type":54,"value":545},"Create endpoints - who sets the owner?",{"type":48,"tag":88,"props":547,"children":548},{},[549],{"type":54,"value":550},"Update endpoints - can users modify others' data?",{"type":48,"tag":88,"props":552,"children":553},{},[554],{"type":54,"value":555},"Delete endpoints - can users delete others' data?",{"type":48,"tag":88,"props":557,"children":558},{},[559],{"type":54,"value":560},"Custom actions - what do they access?",{"type":48,"tag":134,"props":562,"children":563},{},[],{"type":48,"tag":72,"props":565,"children":567},{"id":566},"phase-3-ask-questions-and-investigate",[568],{"type":54,"value":569},"Phase 3: Ask Questions and Investigate",{"type":48,"tag":57,"props":571,"children":572},{},[573],{"type":54,"value":574},"For each endpoint that handles user data, ask:",{"type":48,"tag":149,"props":576,"children":578},{"id":577},"the-core-question",[579],{"type":54,"value":580},"The Core Question",{"type":48,"tag":57,"props":582,"children":583},{},[584],{"type":48,"tag":66,"props":585,"children":586},{},[587],{"type":54,"value":588},"\"If I'm User A and I know the ID of User B's resource, can I access it?\"",{"type":48,"tag":57,"props":590,"children":591},{},[592],{"type":54,"value":593},"Trace the code to answer this:",{"type":48,"tag":161,"props":595,"children":598},{"className":596,"code":597,"language":54},[164],"1. Where does the resource ID enter the system?\n   - URL path: \u002Fapi\u002Fdocuments\u002F{id}\u002F\n   - Query param: ?document_id=123\n   - Request body: {\"document_id\": 123}\n\n2. Where is that ID used to fetch data?\n   - Find the ORM query or database call\n\n3. Between (1) and (2), what checks exist?\n   - Is the query scoped to current user?\n   - Is there an explicit ownership check?\n   - Is there a permission check on the object?\n   - Does a base class or mixin enforce access?\n\n4. If you can't find a check, is there one you missed?\n   - Check parent classes\n   - Check middleware\n   - Check managers\n   - Check decorators at URL level\n",[599],{"type":48,"tag":168,"props":600,"children":601},{"__ignoreMap":170},[602],{"type":54,"value":597},{"type":48,"tag":149,"props":604,"children":606},{"id":605},"follow-up-questions",[607],{"type":54,"value":608},"Follow-Up Questions",{"type":48,"tag":161,"props":610,"children":613},{"className":611,"code":612,"language":54},[164],"□ For list endpoints: Does the query filter to user's data, or return everything?\n\n□ For create endpoints: Who sets the owner - the server or the request?\n\n□ For bulk operations: Are they scoped to user's data?\n\n□ For related resources: If I can access a document, can I access its comments?\n  What if the document belongs to someone else?\n\n□ For tenant\u002Forg resources: Can User in Org A access Org B's data by changing\n  the org_id in the URL?\n",[614],{"type":48,"tag":168,"props":615,"children":616},{"__ignoreMap":170},[617],{"type":54,"value":612},{"type":48,"tag":134,"props":619,"children":620},{},[],{"type":48,"tag":72,"props":622,"children":624},{"id":623},"phase-4-trace-specific-flows",[625],{"type":54,"value":626},"Phase 4: Trace Specific Flows",{"type":48,"tag":57,"props":628,"children":629},{},[630],{"type":54,"value":631},"Pick a concrete endpoint and trace it completely.",{"type":48,"tag":149,"props":633,"children":635},{"id":634},"example-investigation",[636],{"type":54,"value":637},"Example Investigation",{"type":48,"tag":161,"props":639,"children":642},{"className":640,"code":641,"language":54},[164],"Endpoint: GET \u002Fapi\u002Fdocuments\u002F{pk}\u002F\n\n1. Find the view handling this URL\n   → DocumentViewSet.retrieve() in api\u002Fviews.py\n\n2. Check what DocumentViewSet inherits from\n   → class DocumentViewSet(viewsets.ModelViewSet)\n   → No custom base class with authorization\n\n3. Check permission_classes\n   → permission_classes = [IsAuthenticated]\n   → Only checks login, not ownership\n\n4. Check get_queryset()\n   → def get_queryset(self):\n   →     return Document.objects.all()\n   → Returns ALL documents!\n\n5. Check for has_object_permission()\n   → Not implemented\n\n6. Check retrieve() method\n   → Uses default, which calls get_object()\n   → get_object() uses get_queryset(), which returns all\n\n7. Conclusion: IDOR - Any authenticated user can access any document\n",[643],{"type":48,"tag":168,"props":644,"children":645},{"__ignoreMap":170},[646],{"type":54,"value":641},{"type":48,"tag":149,"props":648,"children":650},{"id":649},"what-to-look-for-when-tracing",[651],{"type":54,"value":652},"What to look for when tracing",{"type":48,"tag":161,"props":654,"children":657},{"className":655,"code":656,"language":54},[164],"Potential gap indicators (investigate further, don't auto-flag):\n- get_queryset() returns .all() or filters without user\n- Direct Model.objects.get(pk=pk) without ownership in query\n- ID comes from request body for sensitive operations\n- Permission class checks auth but not ownership\n- No has_object_permission() and queryset isn't scoped\n\nLikely safe patterns (but verify the implementation):\n- get_queryset() filters by request.user or user's org\n- Custom permission class with has_object_permission()\n- Base class that enforces scoping\n- Manager that auto-filters\n",[658],{"type":48,"tag":168,"props":659,"children":660},{"__ignoreMap":170},[661],{"type":54,"value":656},{"type":48,"tag":134,"props":663,"children":664},{},[],{"type":48,"tag":72,"props":666,"children":668},{"id":667},"phase-5-report-findings",[669],{"type":54,"value":670},"Phase 5: Report Findings",{"type":48,"tag":57,"props":672,"children":673},{},[674],{"type":54,"value":675},"Only report issues you've confirmed through investigation.",{"type":48,"tag":149,"props":677,"children":679},{"id":678},"confidence-levels",[680],{"type":54,"value":681},"Confidence Levels",{"type":48,"tag":683,"props":684,"children":685},"table",{},[686,710],{"type":48,"tag":687,"props":688,"children":689},"thead",{},[690],{"type":48,"tag":691,"props":692,"children":693},"tr",{},[694,700,705],{"type":48,"tag":695,"props":696,"children":697},"th",{},[698],{"type":54,"value":699},"Level",{"type":48,"tag":695,"props":701,"children":702},{},[703],{"type":54,"value":704},"Meaning",{"type":48,"tag":695,"props":706,"children":707},{},[708],{"type":54,"value":709},"Action",{"type":48,"tag":711,"props":712,"children":713},"tbody",{},[714,736,757],{"type":48,"tag":691,"props":715,"children":716},{},[717,726,731],{"type":48,"tag":718,"props":719,"children":720},"td",{},[721],{"type":48,"tag":66,"props":722,"children":723},{},[724],{"type":54,"value":725},"HIGH",{"type":48,"tag":718,"props":727,"children":728},{},[729],{"type":54,"value":730},"Traced the flow, confirmed no check exists",{"type":48,"tag":718,"props":732,"children":733},{},[734],{"type":54,"value":735},"Report with evidence",{"type":48,"tag":691,"props":737,"children":738},{},[739,747,752],{"type":48,"tag":718,"props":740,"children":741},{},[742],{"type":48,"tag":66,"props":743,"children":744},{},[745],{"type":54,"value":746},"MEDIUM",{"type":48,"tag":718,"props":748,"children":749},{},[750],{"type":54,"value":751},"Check may exist but couldn't confirm",{"type":48,"tag":718,"props":753,"children":754},{},[755],{"type":54,"value":756},"Note for manual verification",{"type":48,"tag":691,"props":758,"children":759},{},[760,768,773],{"type":48,"tag":718,"props":761,"children":762},{},[763],{"type":48,"tag":66,"props":764,"children":765},{},[766],{"type":54,"value":767},"LOW",{"type":48,"tag":718,"props":769,"children":770},{},[771],{"type":54,"value":772},"Theoretical, likely mitigated",{"type":48,"tag":718,"props":774,"children":775},{},[776],{"type":54,"value":777},"Do not report",{"type":48,"tag":149,"props":779,"children":781},{"id":780},"suggested-fixes-must-enforce-not-document",[782],{"type":54,"value":783},"Suggested Fixes Must Enforce, Not Document",{"type":48,"tag":57,"props":785,"children":786},{},[787,792,794,799],{"type":48,"tag":66,"props":788,"children":789},{},[790],{"type":54,"value":791},"Bad fix",{"type":54,"value":793},": Adding a comment saying \"caller must validate permissions\"\n",{"type":48,"tag":66,"props":795,"children":796},{},[797],{"type":54,"value":798},"Good fix",{"type":54,"value":800},": Adding code that actually validates permissions",{"type":48,"tag":57,"props":802,"children":803},{},[804],{"type":54,"value":805},"A comment or docstring does not enforce authorization. Your suggested fix must include actual code that:",{"type":48,"tag":528,"props":807,"children":808},{},[809,814,819],{"type":48,"tag":88,"props":810,"children":811},{},[812],{"type":54,"value":813},"Validates the user has permission before proceeding",{"type":48,"tag":88,"props":815,"children":816},{},[817],{"type":54,"value":818},"Raises an exception or returns an error if unauthorized",{"type":48,"tag":88,"props":820,"children":821},{},[822],{"type":54,"value":823},"Makes unauthorized access impossible, not just discouraged",{"type":48,"tag":57,"props":825,"children":826},{},[827],{"type":54,"value":828},"Example of a BAD fix suggestion:",{"type":48,"tag":161,"props":830,"children":833},{"className":831,"code":832,"language":22,"meta":170,"style":170},"language-python shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","def get_resource(resource_id):\n    # IMPORTANT: Caller must ensure user has access to this resource\n    return Resource.objects.get(pk=resource_id)\n",[834],{"type":48,"tag":168,"props":835,"children":836},{"__ignoreMap":170},[837,845,853],{"type":48,"tag":189,"props":838,"children":839},{"class":191,"line":192},[840],{"type":48,"tag":189,"props":841,"children":842},{},[843],{"type":54,"value":844},"def get_resource(resource_id):\n",{"type":48,"tag":189,"props":846,"children":847},{"class":191,"line":202},[848],{"type":48,"tag":189,"props":849,"children":850},{},[851],{"type":54,"value":852},"    # IMPORTANT: Caller must ensure user has access to this resource\n",{"type":48,"tag":189,"props":854,"children":855},{"class":191,"line":267},[856],{"type":48,"tag":189,"props":857,"children":858},{},[859],{"type":54,"value":860},"    return Resource.objects.get(pk=resource_id)\n",{"type":48,"tag":57,"props":862,"children":863},{},[864],{"type":54,"value":865},"Example of a GOOD fix suggestion:",{"type":48,"tag":161,"props":867,"children":869},{"className":831,"code":868,"language":22,"meta":170,"style":170},"def get_resource(resource_id, user):\n    resource = Resource.objects.get(pk=resource_id)\n    if resource.owner_id != user.id:\n        raise PermissionDenied(\"Access denied\")\n    return resource\n",[870],{"type":48,"tag":168,"props":871,"children":872},{"__ignoreMap":170},[873,881,889,897,905],{"type":48,"tag":189,"props":874,"children":875},{"class":191,"line":192},[876],{"type":48,"tag":189,"props":877,"children":878},{},[879],{"type":54,"value":880},"def get_resource(resource_id, user):\n",{"type":48,"tag":189,"props":882,"children":883},{"class":191,"line":202},[884],{"type":48,"tag":189,"props":885,"children":886},{},[887],{"type":54,"value":888},"    resource = Resource.objects.get(pk=resource_id)\n",{"type":48,"tag":189,"props":890,"children":891},{"class":191,"line":267},[892],{"type":48,"tag":189,"props":893,"children":894},{},[895],{"type":54,"value":896},"    if resource.owner_id != user.id:\n",{"type":48,"tag":189,"props":898,"children":899},{"class":191,"line":277},[900],{"type":48,"tag":189,"props":901,"children":902},{},[903],{"type":54,"value":904},"        raise PermissionDenied(\"Access denied\")\n",{"type":48,"tag":189,"props":906,"children":907},{"class":191,"line":286},[908],{"type":48,"tag":189,"props":909,"children":910},{},[911],{"type":54,"value":912},"    return resource\n",{"type":48,"tag":57,"props":914,"children":915},{},[916],{"type":54,"value":917},"If you can't determine the right enforcement mechanism, say so - but never suggest documentation as the fix.",{"type":48,"tag":149,"props":919,"children":921},{"id":920},"report-format",[922],{"type":54,"value":923},"Report Format",{"type":48,"tag":161,"props":925,"children":929},{"className":926,"code":927,"language":928,"meta":170,"style":170},"language-markdown shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","## Access Control Review: [Component]\n\n### Authorization Model\n[Brief description of how this codebase handles authorization]\n\n### Findings\n\n#### [IDOR-001] [Title] (Severity: High\u002FMedium)\n- **Location**: `path\u002Fto\u002Ffile.py:123`\n- **Confidence**: High - confirmed through code tracing\n- **The Question**: Can User A access User B's documents?\n- **Investigation**:\n  1. Traced GET \u002Fapi\u002Fdocuments\u002F{pk}\u002F to DocumentViewSet\n  2. Checked get_queryset() - returns Document.objects.all()\n  3. Checked permission_classes - only IsAuthenticated\n  4. Checked for has_object_permission() - not implemented\n  5. Verified no relevant middleware or base class checks\n- **Evidence**: [Code snippet showing the gap]\n- **Impact**: Any authenticated user can read any document by ID\n- **Suggested Fix**: [Code that enforces authorization - NOT a comment]\n\n### Needs Manual Verification\n[Issues where authorization exists but couldn't confirm effectiveness]\n\n### Areas Not Reviewed\n[Endpoints or flows not covered in this review]\n","markdown",[930],{"type":48,"tag":168,"props":931,"children":932},{"__ignoreMap":170},[933,961,968,981,990,997,1009,1016,1053,1098,1123,1148,1174,1188,1202,1216,1230,1244,1270,1296,1322,1330,1343,1352,1360,1373],{"type":48,"tag":189,"props":934,"children":935},{"class":191,"line":192},[936,941,946,951,956],{"type":48,"tag":189,"props":937,"children":938},{"style":218},[939],{"type":54,"value":940},"## ",{"type":48,"tag":189,"props":942,"children":943},{"style":206},[944],{"type":54,"value":945},"Access Control Review: ",{"type":48,"tag":189,"props":947,"children":948},{"style":218},[949],{"type":54,"value":950},"[",{"type":48,"tag":189,"props":952,"children":953},{"style":212},[954],{"type":54,"value":955},"Component",{"type":48,"tag":189,"props":957,"children":958},{"style":218},[959],{"type":54,"value":960},"]\n",{"type":48,"tag":189,"props":962,"children":963},{"class":191,"line":202},[964],{"type":48,"tag":189,"props":965,"children":966},{"emptyLinePlaceholder":271},[967],{"type":54,"value":274},{"type":48,"tag":189,"props":969,"children":970},{"class":191,"line":267},[971,976],{"type":48,"tag":189,"props":972,"children":973},{"style":218},[974],{"type":54,"value":975},"### ",{"type":48,"tag":189,"props":977,"children":978},{"style":206},[979],{"type":54,"value":980},"Authorization Model\n",{"type":48,"tag":189,"props":982,"children":983},{"class":191,"line":277},[984],{"type":48,"tag":189,"props":985,"children":987},{"style":986},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[988],{"type":54,"value":989},"[Brief description of how this codebase handles authorization]\n",{"type":48,"tag":189,"props":991,"children":992},{"class":191,"line":286},[993],{"type":48,"tag":189,"props":994,"children":995},{"emptyLinePlaceholder":271},[996],{"type":54,"value":274},{"type":48,"tag":189,"props":998,"children":999},{"class":191,"line":339},[1000,1004],{"type":48,"tag":189,"props":1001,"children":1002},{"style":218},[1003],{"type":54,"value":975},{"type":48,"tag":189,"props":1005,"children":1006},{"style":206},[1007],{"type":54,"value":1008},"Findings\n",{"type":48,"tag":189,"props":1010,"children":1011},{"class":191,"line":347},[1012],{"type":48,"tag":189,"props":1013,"children":1014},{"emptyLinePlaceholder":271},[1015],{"type":54,"value":274},{"type":48,"tag":189,"props":1017,"children":1018},{"class":191,"line":356},[1019,1024,1029,1034,1039,1044,1048],{"type":48,"tag":189,"props":1020,"children":1021},{"style":218},[1022],{"type":54,"value":1023},"#### [",{"type":48,"tag":189,"props":1025,"children":1026},{"style":212},[1027],{"type":54,"value":1028},"IDOR-001",{"type":48,"tag":189,"props":1030,"children":1031},{"style":218},[1032],{"type":54,"value":1033},"]",{"type":48,"tag":189,"props":1035,"children":1036},{"style":218},[1037],{"type":54,"value":1038}," [",{"type":48,"tag":189,"props":1040,"children":1041},{"style":212},[1042],{"type":54,"value":1043},"Title",{"type":48,"tag":189,"props":1045,"children":1046},{"style":218},[1047],{"type":54,"value":1033},{"type":48,"tag":189,"props":1049,"children":1050},{"style":206},[1051],{"type":54,"value":1052}," (Severity: High\u002FMedium)\n",{"type":48,"tag":189,"props":1054,"children":1055},{"class":191,"line":409},[1056,1061,1067,1073,1078,1083,1088,1093],{"type":48,"tag":189,"props":1057,"children":1058},{"style":218},[1059],{"type":54,"value":1060},"-",{"type":48,"tag":189,"props":1062,"children":1064},{"style":1063},"--shiki-light:#39ADB5;--shiki-light-font-weight:bold;--shiki-default:#89DDFF;--shiki-default-font-weight:bold;--shiki-dark:#89DDFF;--shiki-dark-font-weight:bold",[1065],{"type":54,"value":1066}," **",{"type":48,"tag":189,"props":1068,"children":1070},{"style":1069},"--shiki-light:#E53935;--shiki-light-font-weight:bold;--shiki-default:#F07178;--shiki-default-font-weight:bold;--shiki-dark:#F07178;--shiki-dark-font-weight:bold",[1071],{"type":54,"value":1072},"Location",{"type":48,"tag":189,"props":1074,"children":1075},{"style":1063},[1076],{"type":54,"value":1077},"**",{"type":48,"tag":189,"props":1079,"children":1080},{"style":986},[1081],{"type":54,"value":1082},": ",{"type":48,"tag":189,"props":1084,"children":1085},{"style":218},[1086],{"type":54,"value":1087},"`",{"type":48,"tag":189,"props":1089,"children":1090},{"style":212},[1091],{"type":54,"value":1092},"path\u002Fto\u002Ffile.py:123",{"type":48,"tag":189,"props":1094,"children":1095},{"style":218},[1096],{"type":54,"value":1097},"`\n",{"type":48,"tag":189,"props":1099,"children":1100},{"class":191,"line":417},[1101,1105,1109,1114,1118],{"type":48,"tag":189,"props":1102,"children":1103},{"style":218},[1104],{"type":54,"value":1060},{"type":48,"tag":189,"props":1106,"children":1107},{"style":1063},[1108],{"type":54,"value":1066},{"type":48,"tag":189,"props":1110,"children":1111},{"style":1069},[1112],{"type":54,"value":1113},"Confidence",{"type":48,"tag":189,"props":1115,"children":1116},{"style":1063},[1117],{"type":54,"value":1077},{"type":48,"tag":189,"props":1119,"children":1120},{"style":986},[1121],{"type":54,"value":1122},": High - confirmed through code tracing\n",{"type":48,"tag":189,"props":1124,"children":1125},{"class":191,"line":426},[1126,1130,1134,1139,1143],{"type":48,"tag":189,"props":1127,"children":1128},{"style":218},[1129],{"type":54,"value":1060},{"type":48,"tag":189,"props":1131,"children":1132},{"style":1063},[1133],{"type":54,"value":1066},{"type":48,"tag":189,"props":1135,"children":1136},{"style":1069},[1137],{"type":54,"value":1138},"The Question",{"type":48,"tag":189,"props":1140,"children":1141},{"style":1063},[1142],{"type":54,"value":1077},{"type":48,"tag":189,"props":1144,"children":1145},{"style":986},[1146],{"type":54,"value":1147},": Can User A access User B's documents?\n",{"type":48,"tag":189,"props":1149,"children":1151},{"class":191,"line":1150},12,[1152,1156,1160,1165,1169],{"type":48,"tag":189,"props":1153,"children":1154},{"style":218},[1155],{"type":54,"value":1060},{"type":48,"tag":189,"props":1157,"children":1158},{"style":1063},[1159],{"type":54,"value":1066},{"type":48,"tag":189,"props":1161,"children":1162},{"style":1069},[1163],{"type":54,"value":1164},"Investigation",{"type":48,"tag":189,"props":1166,"children":1167},{"style":1063},[1168],{"type":54,"value":1077},{"type":48,"tag":189,"props":1170,"children":1171},{"style":986},[1172],{"type":54,"value":1173},":\n",{"type":48,"tag":189,"props":1175,"children":1177},{"class":191,"line":1176},13,[1178,1183],{"type":48,"tag":189,"props":1179,"children":1180},{"style":218},[1181],{"type":54,"value":1182},"  1.",{"type":48,"tag":189,"props":1184,"children":1185},{"style":986},[1186],{"type":54,"value":1187}," Traced GET \u002Fapi\u002Fdocuments\u002F{pk}\u002F to DocumentViewSet\n",{"type":48,"tag":189,"props":1189,"children":1191},{"class":191,"line":1190},14,[1192,1197],{"type":48,"tag":189,"props":1193,"children":1194},{"style":218},[1195],{"type":54,"value":1196},"  2.",{"type":48,"tag":189,"props":1198,"children":1199},{"style":986},[1200],{"type":54,"value":1201}," Checked get_queryset() - returns Document.objects.all()\n",{"type":48,"tag":189,"props":1203,"children":1205},{"class":191,"line":1204},15,[1206,1211],{"type":48,"tag":189,"props":1207,"children":1208},{"style":218},[1209],{"type":54,"value":1210},"  3.",{"type":48,"tag":189,"props":1212,"children":1213},{"style":986},[1214],{"type":54,"value":1215}," Checked permission_classes - only IsAuthenticated\n",{"type":48,"tag":189,"props":1217,"children":1219},{"class":191,"line":1218},16,[1220,1225],{"type":48,"tag":189,"props":1221,"children":1222},{"style":218},[1223],{"type":54,"value":1224},"  4.",{"type":48,"tag":189,"props":1226,"children":1227},{"style":986},[1228],{"type":54,"value":1229}," Checked for has_object_permission() - not implemented\n",{"type":48,"tag":189,"props":1231,"children":1233},{"class":191,"line":1232},17,[1234,1239],{"type":48,"tag":189,"props":1235,"children":1236},{"style":218},[1237],{"type":54,"value":1238},"  5.",{"type":48,"tag":189,"props":1240,"children":1241},{"style":986},[1242],{"type":54,"value":1243}," Verified no relevant middleware or base class checks\n",{"type":48,"tag":189,"props":1245,"children":1247},{"class":191,"line":1246},18,[1248,1252,1256,1261,1265],{"type":48,"tag":189,"props":1249,"children":1250},{"style":218},[1251],{"type":54,"value":1060},{"type":48,"tag":189,"props":1253,"children":1254},{"style":1063},[1255],{"type":54,"value":1066},{"type":48,"tag":189,"props":1257,"children":1258},{"style":1069},[1259],{"type":54,"value":1260},"Evidence",{"type":48,"tag":189,"props":1262,"children":1263},{"style":1063},[1264],{"type":54,"value":1077},{"type":48,"tag":189,"props":1266,"children":1267},{"style":986},[1268],{"type":54,"value":1269},": [Code snippet showing the gap]\n",{"type":48,"tag":189,"props":1271,"children":1273},{"class":191,"line":1272},19,[1274,1278,1282,1287,1291],{"type":48,"tag":189,"props":1275,"children":1276},{"style":218},[1277],{"type":54,"value":1060},{"type":48,"tag":189,"props":1279,"children":1280},{"style":1063},[1281],{"type":54,"value":1066},{"type":48,"tag":189,"props":1283,"children":1284},{"style":1069},[1285],{"type":54,"value":1286},"Impact",{"type":48,"tag":189,"props":1288,"children":1289},{"style":1063},[1290],{"type":54,"value":1077},{"type":48,"tag":189,"props":1292,"children":1293},{"style":986},[1294],{"type":54,"value":1295},": Any authenticated user can read any document by ID\n",{"type":48,"tag":189,"props":1297,"children":1299},{"class":191,"line":1298},20,[1300,1304,1308,1313,1317],{"type":48,"tag":189,"props":1301,"children":1302},{"style":218},[1303],{"type":54,"value":1060},{"type":48,"tag":189,"props":1305,"children":1306},{"style":1063},[1307],{"type":54,"value":1066},{"type":48,"tag":189,"props":1309,"children":1310},{"style":1069},[1311],{"type":54,"value":1312},"Suggested Fix",{"type":48,"tag":189,"props":1314,"children":1315},{"style":1063},[1316],{"type":54,"value":1077},{"type":48,"tag":189,"props":1318,"children":1319},{"style":986},[1320],{"type":54,"value":1321},": [Code that enforces authorization - NOT a comment]\n",{"type":48,"tag":189,"props":1323,"children":1325},{"class":191,"line":1324},21,[1326],{"type":48,"tag":189,"props":1327,"children":1328},{"emptyLinePlaceholder":271},[1329],{"type":54,"value":274},{"type":48,"tag":189,"props":1331,"children":1333},{"class":191,"line":1332},22,[1334,1338],{"type":48,"tag":189,"props":1335,"children":1336},{"style":218},[1337],{"type":54,"value":975},{"type":48,"tag":189,"props":1339,"children":1340},{"style":206},[1341],{"type":54,"value":1342},"Needs Manual Verification\n",{"type":48,"tag":189,"props":1344,"children":1346},{"class":191,"line":1345},23,[1347],{"type":48,"tag":189,"props":1348,"children":1349},{"style":986},[1350],{"type":54,"value":1351},"[Issues where authorization exists but couldn't confirm effectiveness]\n",{"type":48,"tag":189,"props":1353,"children":1355},{"class":191,"line":1354},24,[1356],{"type":48,"tag":189,"props":1357,"children":1358},{"emptyLinePlaceholder":271},[1359],{"type":54,"value":274},{"type":48,"tag":189,"props":1361,"children":1363},{"class":191,"line":1362},25,[1364,1368],{"type":48,"tag":189,"props":1365,"children":1366},{"style":218},[1367],{"type":54,"value":975},{"type":48,"tag":189,"props":1369,"children":1370},{"style":206},[1371],{"type":54,"value":1372},"Areas Not Reviewed\n",{"type":48,"tag":189,"props":1374,"children":1376},{"class":191,"line":1375},26,[1377],{"type":48,"tag":189,"props":1378,"children":1379},{"style":986},[1380],{"type":54,"value":1381},"[Endpoints or flows not covered in this review]\n",{"type":48,"tag":134,"props":1383,"children":1384},{},[],{"type":48,"tag":72,"props":1386,"children":1388},{"id":1387},"common-django-authorization-patterns",[1389],{"type":54,"value":1390},"Common Django Authorization Patterns",{"type":48,"tag":57,"props":1392,"children":1393},{},[1394],{"type":54,"value":1395},"These are patterns you might find - not a checklist to match against.",{"type":48,"tag":149,"props":1397,"children":1399},{"id":1398},"query-scoping",[1400],{"type":54,"value":1401},"Query Scoping",{"type":48,"tag":161,"props":1403,"children":1405},{"className":831,"code":1404,"language":22,"meta":170,"style":170},"# Scoped to user\nDocument.objects.filter(owner=request.user)\n\n# Scoped to organization\nDocument.objects.filter(organization=request.user.organization)\n\n# Using a custom manager\nDocument.objects.for_user(request.user)  # Investigate what this does\n",[1406],{"type":48,"tag":168,"props":1407,"children":1408},{"__ignoreMap":170},[1409,1417,1425,1432,1440,1448,1455,1463],{"type":48,"tag":189,"props":1410,"children":1411},{"class":191,"line":192},[1412],{"type":48,"tag":189,"props":1413,"children":1414},{},[1415],{"type":54,"value":1416},"# Scoped to user\n",{"type":48,"tag":189,"props":1418,"children":1419},{"class":191,"line":202},[1420],{"type":48,"tag":189,"props":1421,"children":1422},{},[1423],{"type":54,"value":1424},"Document.objects.filter(owner=request.user)\n",{"type":48,"tag":189,"props":1426,"children":1427},{"class":191,"line":267},[1428],{"type":48,"tag":189,"props":1429,"children":1430},{"emptyLinePlaceholder":271},[1431],{"type":54,"value":274},{"type":48,"tag":189,"props":1433,"children":1434},{"class":191,"line":277},[1435],{"type":48,"tag":189,"props":1436,"children":1437},{},[1438],{"type":54,"value":1439},"# Scoped to organization\n",{"type":48,"tag":189,"props":1441,"children":1442},{"class":191,"line":286},[1443],{"type":48,"tag":189,"props":1444,"children":1445},{},[1446],{"type":54,"value":1447},"Document.objects.filter(organization=request.user.organization)\n",{"type":48,"tag":189,"props":1449,"children":1450},{"class":191,"line":339},[1451],{"type":48,"tag":189,"props":1452,"children":1453},{"emptyLinePlaceholder":271},[1454],{"type":54,"value":274},{"type":48,"tag":189,"props":1456,"children":1457},{"class":191,"line":347},[1458],{"type":48,"tag":189,"props":1459,"children":1460},{},[1461],{"type":54,"value":1462},"# Using a custom manager\n",{"type":48,"tag":189,"props":1464,"children":1465},{"class":191,"line":356},[1466],{"type":48,"tag":189,"props":1467,"children":1468},{},[1469],{"type":54,"value":1470},"Document.objects.for_user(request.user)  # Investigate what this does\n",{"type":48,"tag":149,"props":1472,"children":1474},{"id":1473},"permission-enforcement",[1475],{"type":54,"value":1476},"Permission Enforcement",{"type":48,"tag":161,"props":1478,"children":1480},{"className":831,"code":1479,"language":22,"meta":170,"style":170},"# DRF permission classes\npermission_classes = [IsAuthenticated, IsOwner]\n\n# Custom has_object_permission\ndef has_object_permission(self, request, view, obj):\n    return obj.owner == request.user\n\n# Django decorators\n@permission_required('app.view_document')\n\n# Manual checks\nif document.owner != request.user:\n    raise PermissionDenied()\n",[1481],{"type":48,"tag":168,"props":1482,"children":1483},{"__ignoreMap":170},[1484,1492,1500,1507,1515,1523,1531,1538,1546,1554,1561,1569,1577],{"type":48,"tag":189,"props":1485,"children":1486},{"class":191,"line":192},[1487],{"type":48,"tag":189,"props":1488,"children":1489},{},[1490],{"type":54,"value":1491},"# DRF permission classes\n",{"type":48,"tag":189,"props":1493,"children":1494},{"class":191,"line":202},[1495],{"type":48,"tag":189,"props":1496,"children":1497},{},[1498],{"type":54,"value":1499},"permission_classes = [IsAuthenticated, IsOwner]\n",{"type":48,"tag":189,"props":1501,"children":1502},{"class":191,"line":267},[1503],{"type":48,"tag":189,"props":1504,"children":1505},{"emptyLinePlaceholder":271},[1506],{"type":54,"value":274},{"type":48,"tag":189,"props":1508,"children":1509},{"class":191,"line":277},[1510],{"type":48,"tag":189,"props":1511,"children":1512},{},[1513],{"type":54,"value":1514},"# Custom has_object_permission\n",{"type":48,"tag":189,"props":1516,"children":1517},{"class":191,"line":286},[1518],{"type":48,"tag":189,"props":1519,"children":1520},{},[1521],{"type":54,"value":1522},"def has_object_permission(self, request, view, obj):\n",{"type":48,"tag":189,"props":1524,"children":1525},{"class":191,"line":339},[1526],{"type":48,"tag":189,"props":1527,"children":1528},{},[1529],{"type":54,"value":1530},"    return obj.owner == request.user\n",{"type":48,"tag":189,"props":1532,"children":1533},{"class":191,"line":347},[1534],{"type":48,"tag":189,"props":1535,"children":1536},{"emptyLinePlaceholder":271},[1537],{"type":54,"value":274},{"type":48,"tag":189,"props":1539,"children":1540},{"class":191,"line":356},[1541],{"type":48,"tag":189,"props":1542,"children":1543},{},[1544],{"type":54,"value":1545},"# Django decorators\n",{"type":48,"tag":189,"props":1547,"children":1548},{"class":191,"line":409},[1549],{"type":48,"tag":189,"props":1550,"children":1551},{},[1552],{"type":54,"value":1553},"@permission_required('app.view_document')\n",{"type":48,"tag":189,"props":1555,"children":1556},{"class":191,"line":417},[1557],{"type":48,"tag":189,"props":1558,"children":1559},{"emptyLinePlaceholder":271},[1560],{"type":54,"value":274},{"type":48,"tag":189,"props":1562,"children":1563},{"class":191,"line":426},[1564],{"type":48,"tag":189,"props":1565,"children":1566},{},[1567],{"type":54,"value":1568},"# Manual checks\n",{"type":48,"tag":189,"props":1570,"children":1571},{"class":191,"line":1150},[1572],{"type":48,"tag":189,"props":1573,"children":1574},{},[1575],{"type":54,"value":1576},"if document.owner != request.user:\n",{"type":48,"tag":189,"props":1578,"children":1579},{"class":191,"line":1176},[1580],{"type":48,"tag":189,"props":1581,"children":1582},{},[1583],{"type":54,"value":1584},"    raise PermissionDenied()\n",{"type":48,"tag":149,"props":1586,"children":1588},{"id":1587},"ownership-assignment",[1589],{"type":54,"value":1590},"Ownership Assignment",{"type":48,"tag":161,"props":1592,"children":1594},{"className":831,"code":1593,"language":22,"meta":170,"style":170},"# Server-side (safe)\ndef perform_create(self, serializer):\n    serializer.save(owner=self.request.user)\n\n# From request (investigate)\nserializer.save(**request.data)  # Does request.data include owner?\n",[1595],{"type":48,"tag":168,"props":1596,"children":1597},{"__ignoreMap":170},[1598,1606,1614,1622,1629,1637],{"type":48,"tag":189,"props":1599,"children":1600},{"class":191,"line":192},[1601],{"type":48,"tag":189,"props":1602,"children":1603},{},[1604],{"type":54,"value":1605},"# Server-side (safe)\n",{"type":48,"tag":189,"props":1607,"children":1608},{"class":191,"line":202},[1609],{"type":48,"tag":189,"props":1610,"children":1611},{},[1612],{"type":54,"value":1613},"def perform_create(self, serializer):\n",{"type":48,"tag":189,"props":1615,"children":1616},{"class":191,"line":267},[1617],{"type":48,"tag":189,"props":1618,"children":1619},{},[1620],{"type":54,"value":1621},"    serializer.save(owner=self.request.user)\n",{"type":48,"tag":189,"props":1623,"children":1624},{"class":191,"line":277},[1625],{"type":48,"tag":189,"props":1626,"children":1627},{"emptyLinePlaceholder":271},[1628],{"type":54,"value":274},{"type":48,"tag":189,"props":1630,"children":1631},{"class":191,"line":286},[1632],{"type":48,"tag":189,"props":1633,"children":1634},{},[1635],{"type":54,"value":1636},"# From request (investigate)\n",{"type":48,"tag":189,"props":1638,"children":1639},{"class":191,"line":339},[1640],{"type":48,"tag":189,"props":1641,"children":1642},{},[1643],{"type":54,"value":1644},"serializer.save(**request.data)  # Does request.data include owner?\n",{"type":48,"tag":134,"props":1646,"children":1647},{},[],{"type":48,"tag":72,"props":1649,"children":1651},{"id":1650},"investigation-checklist",[1652],{"type":54,"value":1653},"Investigation Checklist",{"type":48,"tag":57,"props":1655,"children":1656},{},[1657],{"type":54,"value":1658},"Use this to guide your review, not as a pass\u002Ffail checklist:",{"type":48,"tag":161,"props":1660,"children":1663},{"className":1661,"code":1662,"language":54},[164],"□ I understand how authorization is typically implemented in this codebase\n□ I've identified the ownership model (user, org, tenant, etc.)\n□ I've mapped the key endpoints that handle user data\n□ For each sensitive endpoint, I've traced the flow and asked:\n  - Where does the ID come from?\n  - Where is data fetched?\n  - What checks exist between input and data access?\n□ I've verified my findings by checking parent classes and middleware\n□ I've only reported issues I've confirmed through investigation\n",[1664],{"type":48,"tag":168,"props":1665,"children":1666},{"__ignoreMap":170},[1667],{"type":54,"value":1662},{"type":48,"tag":1669,"props":1670,"children":1671},"style",{},[1672],{"type":54,"value":1673},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":1675,"total":1837},[1676,1701,1715,1728,1742,1759,1773,1787,1795,1806,1816,1824],{"slug":1677,"name":1677,"fn":1678,"description":1679,"org":1680,"tags":1681,"stars":1698,"repoUrl":1699,"updatedAt":1700},"xcodebuildmcp","build and test Apple apps with XcodeBuildMCP","Official skill for XcodeBuildMCP. Use when doing iOS\u002FmacOS\u002FwatchOS\u002FtvOS\u002FvisionOS work (build, test, run, debug, log, UI automation).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1682,1685,1688,1691,1692,1695],{"name":1683,"slug":1684,"type":16},"Debugging","debugging",{"name":1686,"slug":1687,"type":16},"iOS","ios",{"name":1689,"slug":1690,"type":16},"macOS","macos",{"name":9,"slug":8,"type":16},{"name":1693,"slug":1694,"type":16},"Testing","testing",{"name":1696,"slug":1697,"type":16},"Xcode","xcode",6176,"https:\u002F\u002Fgithub.com\u002Fgetsentry\u002FXcodeBuildMCP","2026-04-06T18:13:34.8719",{"slug":1702,"name":1702,"fn":1703,"description":1704,"org":1705,"tags":1706,"stars":1698,"repoUrl":1699,"updatedAt":1714},"xcodebuildmcp-cli","build and test Apple apps via CLI","Official skill for the XcodeBuildMCP CLI. Use when doing iOS\u002FmacOS\u002FwatchOS\u002FtvOS\u002FvisionOS work (build, test, run, debug, log, UI automation).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1707,1710,1711,1712,1713],{"name":1708,"slug":1709,"type":16},"CLI","cli",{"name":1686,"slug":1687,"type":16},{"name":1689,"slug":1690,"type":16},{"name":1693,"slug":1694,"type":16},{"name":1696,"slug":1697,"type":16},"2026-04-06T18:13:36.13414",{"slug":1716,"name":1716,"fn":1717,"description":1718,"org":1719,"tags":1720,"stars":29,"repoUrl":30,"updatedAt":1727},"agents-md","maintain project instruction files","Creates and maintains concise AGENTS.md and CLAUDE.md project instruction files. Use when asked to create AGENTS.md, update AGENTS.md, maintain agent docs, set up CLAUDE.md, document repository agent conventions, or keep coding-agent instructions minimal and reference-backed.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1721,1724],{"name":1722,"slug":1723,"type":16},"Documentation","documentation",{"name":1725,"slug":1726,"type":16},"Engineering","engineering","2026-05-15T06:16:29.695991",{"slug":1729,"name":1729,"fn":1730,"description":1731,"org":1732,"tags":1733,"stars":29,"repoUrl":30,"updatedAt":1741},"blog-writing-guide","write and review engineering blog posts","Write, review, and improve blog posts for the Sentry engineering blog following Sentry's specific writing standards, voice, and quality bar. Use this skill whenever someone asks to write a blog post, draft a technical article, review blog content, improve a draft, write a product announcement, create an engineering deep-dive, or produce any written content destined for the Sentry blog or developer audience. Also trigger when the user mentions \"blog post,\" \"blog draft,\" \"write-up,\" \"announcement post,\" \"engineering post,\" \"deep dive,\" \"postmortem,\" or asks for help with technical writing for Sentry. Even if the user just says \"help me write about [feature\u002Ftopic]\" — if it sounds like it could become a Sentry blog post, use this skill.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1734,1737,1738],{"name":1735,"slug":1736,"type":16},"Communications","communications",{"name":9,"slug":8,"type":16},{"name":1739,"slug":1740,"type":16},"Technical Writing","technical-writing","2026-05-15T06:16:33.38217",{"slug":1743,"name":1743,"fn":1744,"description":1745,"org":1746,"tags":1747,"stars":29,"repoUrl":30,"updatedAt":1758},"brand-guidelines","write copy following Sentry brand guidelines","Write copy following Sentry brand guidelines. Use when writing UI text, error messages, empty states, onboarding flows, 404 pages, documentation, marketing copy, or any user-facing content. Covers both Plain Speech (default) and Sentry Voice tones.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1748,1751,1754,1755],{"name":1749,"slug":1750,"type":16},"Branding","branding",{"name":1752,"slug":1753,"type":16},"Content Creation","content-creation",{"name":9,"slug":8,"type":16},{"name":1756,"slug":1757,"type":16},"UX Copy","ux-copy","2026-05-15T06:16:22.395707",{"slug":1760,"name":1760,"fn":1761,"description":1762,"org":1763,"tags":1764,"stars":29,"repoUrl":30,"updatedAt":1772},"claude-settings-audit","generate Claude Code settings permissions","Analyze a repository to generate recommended Claude Code settings.json permissions. Use when setting up a new project, auditing existing settings, or determining which read-only bash commands to allow. Detects tech stack, build tools, and monorepo structure.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1765,1768,1771],{"name":1766,"slug":1767,"type":16},"Claude Code","claude-code",{"name":1769,"slug":1770,"type":16},"Configuration","configuration",{"name":14,"slug":15,"type":16},"2026-05-15T06:16:44.335977",{"slug":1774,"name":1774,"fn":1775,"description":1776,"org":1777,"tags":1778,"stars":29,"repoUrl":30,"updatedAt":1786},"code-review","perform code reviews for Sentry projects","Perform code reviews following Sentry engineering practices. Use when reviewing pull requests, examining code changes, or providing feedback on code quality. Covers security, performance, testing, and design review.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1779,1781,1782,1785],{"name":1780,"slug":1774,"type":16},"Code Review",{"name":1725,"slug":1726,"type":16},{"name":1783,"slug":1784,"type":16},"Performance","performance",{"name":14,"slug":15,"type":16},"2026-05-15T06:16:35.824864",{"slug":1788,"name":1788,"fn":1789,"description":1790,"org":1791,"tags":1792,"stars":29,"repoUrl":30,"updatedAt":1794},"code-simplifier","simplify and refine source code","Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Use when asked to \"simplify code\", \"clean up code\", \"refactor for clarity\", \"improve readability\", or review recently modified code for elegance. Focuses on project-specific best practices.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1793],{"name":27,"slug":28,"type":16},"2026-05-15T06:16:32.127981",{"slug":1796,"name":1796,"fn":1797,"description":1798,"org":1799,"tags":1800,"stars":29,"repoUrl":30,"updatedAt":1805},"commit","create commits with Sentry conventions","Use for every request to commit changes or draft a commit message. Creates Sentry-style conventional commits with issue references.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1801,1804],{"name":1802,"slug":1803,"type":16},"Git","git",{"name":9,"slug":8,"type":16},"2026-07-18T05:15:10.723937",{"slug":1807,"name":1807,"fn":1808,"description":1809,"org":1810,"tags":1811,"stars":29,"repoUrl":30,"updatedAt":1815},"create-branch","create git branches for Sentry workflows","Create a git branch following Sentry naming conventions. Use when asked to \"create a branch\", \"new branch\", \"start a branch\", \"make a branch\", \"switch to a new branch\", or when starting new work on the default branch.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1812,1813,1814],{"name":1725,"slug":1726,"type":16},{"name":1802,"slug":1803,"type":16},{"name":9,"slug":8,"type":16},"2026-05-15T06:16:39.458431",{"slug":4,"name":4,"fn":5,"description":6,"org":1817,"tags":1818,"stars":29,"repoUrl":30,"updatedAt":31},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1819,1820,1821,1822,1823],{"name":24,"slug":25,"type":16},{"name":27,"slug":28,"type":16},{"name":18,"slug":19,"type":16},{"name":21,"slug":22,"type":16},{"name":14,"slug":15,"type":16},{"slug":1825,"name":1825,"fn":1826,"description":1827,"org":1828,"tags":1829,"stars":29,"repoUrl":30,"updatedAt":1836},"django-perf-review","review and optimize Django performance","Django performance code review. Use when asked to \"review Django performance\", \"find N+1 queries\", \"optimize Django\", \"check queryset performance\", \"database performance\", \"Django ORM issues\", or audit Django code for performance problems.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1830,1831,1834,1835],{"name":1780,"slug":1774,"type":16},{"name":1832,"slug":1833,"type":16},"Database","database",{"name":18,"slug":19,"type":16},{"name":1783,"slug":1784,"type":16},"2026-05-15T06:16:24.832813",88,{"items":1839,"total":1880},[1840,1845,1851,1858,1864,1871,1875],{"slug":1716,"name":1716,"fn":1717,"description":1718,"org":1841,"tags":1842,"stars":29,"repoUrl":30,"updatedAt":1727},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1843,1844],{"name":1722,"slug":1723,"type":16},{"name":1725,"slug":1726,"type":16},{"slug":1729,"name":1729,"fn":1730,"description":1731,"org":1846,"tags":1847,"stars":29,"repoUrl":30,"updatedAt":1741},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1848,1849,1850],{"name":1735,"slug":1736,"type":16},{"name":9,"slug":8,"type":16},{"name":1739,"slug":1740,"type":16},{"slug":1743,"name":1743,"fn":1744,"description":1745,"org":1852,"tags":1853,"stars":29,"repoUrl":30,"updatedAt":1758},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1854,1855,1856,1857],{"name":1749,"slug":1750,"type":16},{"name":1752,"slug":1753,"type":16},{"name":9,"slug":8,"type":16},{"name":1756,"slug":1757,"type":16},{"slug":1760,"name":1760,"fn":1761,"description":1762,"org":1859,"tags":1860,"stars":29,"repoUrl":30,"updatedAt":1772},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1861,1862,1863],{"name":1766,"slug":1767,"type":16},{"name":1769,"slug":1770,"type":16},{"name":14,"slug":15,"type":16},{"slug":1774,"name":1774,"fn":1775,"description":1776,"org":1865,"tags":1866,"stars":29,"repoUrl":30,"updatedAt":1786},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1867,1868,1869,1870],{"name":1780,"slug":1774,"type":16},{"name":1725,"slug":1726,"type":16},{"name":1783,"slug":1784,"type":16},{"name":14,"slug":15,"type":16},{"slug":1788,"name":1788,"fn":1789,"description":1790,"org":1872,"tags":1873,"stars":29,"repoUrl":30,"updatedAt":1794},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1874],{"name":27,"slug":28,"type":16},{"slug":1796,"name":1796,"fn":1797,"description":1798,"org":1876,"tags":1877,"stars":29,"repoUrl":30,"updatedAt":1805},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1878,1879],{"name":1802,"slug":1803,"type":16},{"name":9,"slug":8,"type":16},28]