Repository navigation
DRXStore v3.0.0 — Security Hardening Release
DRXStore v3.0.0 — Security Hardening Release
This release resolves 19 security vulnerabilities and fixes the CSV medicine import bug.
Upgrading from v2.0.0 is strongly recommended. v2.0.0 is no longer supported.
Security fixes
- [Critical]
requireAdmin()now verifies role — staff users can no longer access admin pages - [Critical] Software updater replaced with GitHub-only fetch — no user-uploaded ZIP accepted
- [High] CSRF protection on all forms and sensitive GET actions
- [High] Parameterised database queries throughout; XSS escaping on all output
- [High] File upload extension whitelist + MIME check
- [Medium] SMTP password encrypted with AES-256-GCM at rest
- [Medium] Database restore requires admin password confirmation
- [Medium] Setup wizard locked after first run (one-time token)
- [Medium] Rate limiting and lockout on all login forms
- [Medium] Session regenerated on login; idle timeout after 2 hours
- [Low] Security headers (CSP, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy)
- [Low] Minimum password length and complexity enforced on all forms
- [Low] Stack traces suppressed; errors logged only
- [Low] nginx.conf.example + PHP-level guards for data/, config/, helpers/, views/
- [Low] Session cookie set with SameSite=Lax
Bug fixes
- CSV import fixed — missing route, BOM stripping, CRLF normalisation, flexible column mapping, active column removed from insert
Security advisory
Two critical security vulnerabilities involving privilege escalation and remote code execution (RCE) in the software updater were responsibly disclosed by Anil Kumar Voleti (Linkedin).
We sincerely thank him for his responsible disclosure and valuable contribution to improving DRXStore security.
See SECURITY.md and CHANGELOG.md for full details.