You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Integrates the reviewer tool from crackmesone_reviewer_tool repository
as a Flask Blueprint at /review, sharing the same MongoDB connection
and session management with the main site.
Key changes:
- Added review/ folder with Flask Blueprint for content moderation
- Reviewer authentication uses Flask sessions (separate from main site)
- Integrated delete.py and validate.py scripts directly into routes
- Renamed endpoints for clarity (delc→rejectcrackme, vals→approvesolution)
- Fixed security vulnerabilities:
- Changed /deleteuser from @token_required to @admin_required
- Fixed NoSQL regex injection with re.escape() in 6 locations
- Fixed argument injection in zip commands with -- separator
- All state-changing actions now require POST with CSRF tokens
- Added Discord notifications for approved crackmes/solutions
- Added comprehensive logging for all reviewer operations
- Updated README with reviewer tool configuration documentation
Access control:
- Reviewers: approve/reject pending submissions
- Admins: all reviewer actions + delete approved content, manage users
Configuration:
- config.json: Reviewer.Enabled, Reviewer.PasswordSalt
- review/users.json: Reviewer credentials (username, password_hash, is_admin)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Content moderation (reviewer tool for approving/rejecting submissions)
145
152
146
153
## Configuration
147
154
@@ -158,6 +165,67 @@ Edit `config/config.json`:
158
165
-**Recaptcha.Secret**: Your reCAPTCHA secret key
159
166
-**Discord.Enabled**: Enable/disable Discord notifications for new submissions
160
167
-**Discord.WebhookURL**: Your Discord webhook URL (get from Discord channel settings → Integrations → Webhooks)
168
+
-**Reviewer.Enabled**: Enable/disable the reviewer tool (for moderating submissions)
169
+
-**Reviewer.PasswordSalt**: Salt used for hashing reviewer passwords (change in production!)
170
+
171
+
### Reviewer Tool
172
+
173
+
The reviewer tool is a separate authentication system for site moderators to approve/reject crackme and solution submissions. It is accessed at `/review`.
174
+
175
+
#### Enabling the Reviewer Tool
176
+
177
+
1. Set `Reviewer.Enabled` to `true` in `config/config.json`
178
+
2. Set a secure random string for `Reviewer.PasswordSalt`
179
+
180
+
#### Reviewer Credentials (`review/users.json`)
181
+
182
+
Reviewer accounts are stored in `review/users.json` with the following format:
0 commit comments