# CVE-2023-1505: SourceCodester E-Commerce System setDiscount.php sql injection

- Severity: Medium 5.0 (CVSS:3.1, scored by VulDB) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.55%, higher than 47% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2023-03-20T09:00:06.223Z
- Modified: 2026-06-17T05:28:07.303Z
- Weaknesses: CWE-89
- Assigned by: VulDB

## Description

A vulnerability, which was classified as critical, has been found in SourceCodester E-Commerce System 1.0. This issue affects some unknown processing of the file /ecommerce/admin/settings/setDiscount.php. The manipulation of the argument id with the input 201737 AND (SELECT 8973 FROM (SELECT(SLEEP(5)))OoAD) leads to sql injection. The attack may be initiated remotely. The complexity of an attack is rather high. The exploitation is known to be difficult. The exploit has been disclosed to the public and may be used. The identifier VDB-223409 was assigned to this vulnerability.

(As written by CVE List.)

## Affected

- SourceCodester E-Commerce System: 1.0
- e-commerce_system_project e-commerce_system: 1.0

## Every score

- VulDB: CVSS:3.1 5.0 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L`
- VulDB: CVSS:3.0 5.0 Medium `CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L`
- VulDB: CVSS:2.0 4.6 Medium `AV:N/AC:H/Au:S/C:P/I:P/A:P`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://vuldb.com/?id.223409> (exploit, technical-description, third-party-advisory, vdb-entry)
- <https://vuldb.com/?ctiid.223409> (exploit, signature, third-party-advisory)

## Sources

- CVE List: [CVE-2023-1505](https://www.cve.org/CVERecord?id=CVE-2023-1505), CVE Terms of Use, modified 2024-08-02
- NVD: [CVE-2023-1505](https://nvd.nist.gov/vuln/detail/CVE-2023-1505), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-1505 · Whole record: https://cve.day/CVE-2023-1505.json · Rebuilt by cve.day 2026-11-25T22:58:22.529Z
