ajtazer/heckit / skills/cve-hunting/auth-bypass
auth-bypass
VerifiedDetect authentication and authorization bypass vulnerabilities including missing auth middleware, JWT algorithm confusion, IDOR, and session fixation.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 3.3 KB |
| references/false-positive-indicators.md | markdown | 1008 B |
| references/poc-skeleton.md | markdown | 1.4 KB |
| references/sinks.md | markdown | 1.4 KB |
references/sinks.md
View on GitHub# Auth Mechanism Patterns by Framework
## Express.js (Node.js)
```js
// Middleware-based auth
app.use('/admin', requireAdmin); // Route-level
app.get('/api/data', isAuth, handler); // Per-route
router.use(authMiddleware); // Router-level
// Common auth libraries
passport.authenticate('jwt') // Passport.js
expressJwt({ secret }) // express-jwt
```
## Django (Python)
```python
@login_required # View decorator
@permission_required('app.view_model') # Permission decorator
class MyView(LoginRequiredMixin, View): # Class-based mixin
# DRF
permission_classes = [IsAuthenticated] # View permission
authentication_classes = [TokenAuth] # Auth backend
```
## Flask (Python)
```python
@login_required # Flask-Login
@jwt_required() # Flask-JWT-Extended
@roles_required('admin') # Flask-Security
```
## Go
```go
r.Use(AuthMiddleware) // Router middleware
r.Group(func(r chi.Router) {
r.Use(RequireAuth) // Group middleware
r.Get("/protected", handler)
})
```
## Rails (Ruby)
```ruby
before_action :authenticate_user! # Devise
before_action :authorize_admin, only: [:destroy]
skip_before_action :verify_authenticity_token # CSRF bypass (red flag)
```
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |