| Version | Supported | Notes |
|---|---|---|
| 3.0.x, 3.1.x & 3.2.x | Yes | Current active release |
| 2.0.x | No | End of Life; upgrade immediately |
Please do not open a public GitHub issue for security vulnerabilities.
If you discover a security vulnerability in DRXStore, please report it privately via a GitHub Security Advisory or by emailing ci.vps@proton.me.
- A clear description of the issue
- Step-by-step instructions to reproduce the vulnerability
- The specific version and storage backend (JSON / MySQL) tested
- Any suggested fix, proof-of-concept (PoC), or CVSS vector if available
- Acknowledgement: Within 48 hours
- Fix Target: Agreed patch and coordinated disclosure timeline within 7 days
- Credit: Acknowledgment in the changelog, security advisory, and release notes for confirmed issues (including your name and a link of your choice)
We follow a 90-day coordinated disclosure window from the date of first contact.
- Reported by: Peter Wilfahrt (GitHub | Web)
- Overview: Peter identified a broken access control issue in the supplier purchase-order handler (
public/supplier/orders.php). Thesave_pricesPOST branch was gated only on a status value that silently defaulted topendingwhen the suppliedpo_iddid not belong to the requesting supplier, and the subsequent price/status writes were keyed only onpo_idwith no ownership check. This allowed an authenticated supplier to set arbitrary line-item prices and totals, and flip the status, on any purchase order in the system — including ones belonging to other suppliers. He reported the issue privately via GitHub Private Vulnerability Reporting with a proof of concept and a ready-to-apply patch.
| ID | Severity | Issue Summary |
|---|---|---|
| M1 | Medium | Broken Access Control (IDOR): public/supplier/orders.php allowed the save_prices branch to execute for any po_id, regardless of supplier ownership, because the null case from the ownership-filtered lookup was never checked before entering the branch (CWE-639). |
- Tracking: GHSA-v987-pm7m-r8mf
- CVSS v3.1 Score: 6.5 (
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N) - CWE References:
CWE-639(Authorization Bypass Through User-Controlled Key)
- Reported by: Peter Wilfahrt (GitHub | Web)
- Overview: Peter identified missing authentication on the
get_batchesendpoint (public/admin/get_batches.php), which calledstartSession()instead ofrequireStaff(), allowing unauthenticated inventory enumeration (batch numbers, stock quantities, MRPs, and expiry dates). He reported the issue privately via GitHub Private Vulnerability Reporting with a ready-to-apply patch.
| ID | Severity | Issue Summary |
|---|---|---|
| M1 | Medium | Missing Authentication: public/admin/get_batches.php lacked a requireStaff() gate, allowing unauthenticated requests to enumerate active batch metadata via mid parameter (CWE-306 / CWE-200). |
- CVSS v3.1 Score: 5.3 (
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N) - CWE References:
CWE-306(Missing Authentication for Critical Function),CWE-200(Exposure of Sensitive Information)
- Reported by: Anil Kumar Voleti (LinkedIn Profile)
- Overview: Anil identified two critical vulnerabilities in DRXStore 2.0.0 through independent research on a local installation. He reported them privately, coordinated the timeline, and performed independent patch verification against the
v3.0.0release.
| ID | Severity | Issue Summary |
|---|---|---|
| C1 | Critical | Broken Authorization: requireAdmin() checked session existence but not the user role, granting staff users access to all admin pages. Combined with users.php accepting the role field from POST without restriction, a staff user could escalate to admin. |
| C2 | Critical | Remote Code Execution (RCE): The software updater accepted an arbitrary uploaded ZIP archive with no file-type restrictions or signature verification. An uploaded PHP file could be requested directly over HTTP and executed. |
- Tracking: GHSA-7xhx-j29g-xgx4
- CVE Status: Pending
- CVSS v3.1 Score: 8.8 (
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) - CWE References:
CWE-863(Incorrect Authorization),CWE-434(Unrestricted Upload of File with Dangerous Type)
Note: All identified issues were resolved in v3.0.0. Refer to
CHANGELOG.mdfor full implementation details.
- Role-Based Access Control:
requireAdmin(),requireSupplier(), andrequireCustomer()strictly verify both session validity and role privileges on every protected page. - CSRF Protection: Anti-CSRF tokens enforced on all POST requests; sensitive GET actions validated via
verifyCsrfGet(). - Injection Defense: All database queries are parameterised; HTML outputs are escaped using
e()(htmlspecialchars). - Data Encryption: Sensitive configurations (such as SMTP passwords) are encrypted using AES-256-GCM at rest.
- Authentication Security: Rate limiting and IP lockout active across all login forms and the supplier contact interface.
session_regenerate_id(true)executed upon authentication; 2-hour idle timeout enforced. - Secure Updater: Updates are restricted to official releases fetched strictly from
github.com/psvim/drxstorevia the GitHub API. Direct user-uploaded archives are rejected, and executable file types are blocked during extraction. - Hardened Security Headers: Admin responses enforce strict HTTP headers (
CSP,X-Frame-Options,X-Content-Type-Options,Referrer-Policy,Permissions-Policy). - Path & Directory Protection: Web server rules (
nginx.conf.example,.htaccess) and PHP-level entry guards block direct HTTP access to internal directories (/data,/config,/helpers,/views). - Password Policy: Minimum 8-character passwords with mandatory numeric or special character requirements enforced.
- Content Security Policy (CSP): Currently allows
'unsafe-inline'. Inline scripts and styles are scheduled to be migrated to external files in an upcoming release to enforce a strict nonce/hash-based CSP. - Package Signatures: Update packages are not yet cryptographically signed; release signing is planned on the development roadmap.
- Self-Role Modification Guard: An admin can currently change their own role; a self-role-change protection guard is planned for the next release.