{"schemaVersion":3,"id":"CVE-2021-42580","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"Sourcecodester Online Learning System 2.0 is vunlerable to sql injection authentication bypass in admin login file (/admin/login.php) and authenticated file upload in (Master.php) file , we can craft these two vunlerablities to get unauthenticated remote command execution.","dates":{"published":"2021-11-15T15:57:28.000Z","modified":"2024-08-04T03:38:49.876Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.5,"severity":"high","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.09985,"percentile":0.95595,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.09985},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.09985,"percentile":0.95595}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.09985,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.09985,"percentile":0.95595}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_NU11SECUR1TY_CVE-NU11SECUR1TY","name":"Cve Nu11Secur1Ty","source":"github","url":"https://github.com/nu11secur1ty/CVE-nu11secur1ty/tree/main/vendors/janobe/CVE-nu11-101821","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"GITHUB_DJEBBARANON_ONLINE-LEARNING-SYSTEM-V2-SQLI-AUTHENTICATION-BYPASS-FILE-UPLOAD-UNAUTHENTICATED-RCE","name":"Online Learning System V2 Sqli Authentication Bypass File Upload Unauthenticated Rce","source":"github","url":"https://github.com/DjebbarAnon/online-learning-system-v2-sqli-authentication-bypass-file-upload-unauthenticated-RCE","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_5ABB89A26D0A0733","name":"Exploit Reference (packetstormsecurity.com)","source":"reference","url":"http://packetstormsecurity.com/files/164985/Online-Learning-System-2.0-Remote-Code-Execution.html","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_2ACC77887D4D8F6F","name":"Exploit Reference (nu11secur1ty.com)","source":"reference","url":"https://www.nu11secur1ty.com/2021/09/cve-nu11-07-elearning-v2by-oretnom23-is.html","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_1CAAB2CA8EE80F93","name":"Exploit Reference (nu11secur1ty.com)","source":"reference","url":"https://www.nu11secur1ty.com/2021/11/cve-2021-42580.html","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"50526","name":"Online Learning System 2.0 - Remote Code Execution (RCE)","source":"exploit-database","url":"https://www.exploit-db.com/exploits/50526","maturity":"poc","reliabilityScore":0.5,"verified":false,"type":null,"platforms":["php"],"requiresAuth":null,"exploitdb":{"verified":false,"type":"webapps","platform":"php","file":"exploits/php/webapps/50526.py","codes":["CVE-2021-42580"]},"metasploit":null}],"exploitCount":6,"weaknesses":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","description":"The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/89.html"}],"affected":[{"vendor":"oretnom23","product":"online_learning_system","name":"online learning system","label":"online_learning_system","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"2.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"2.0","eol":null,"hubHref":"/vendor/oretnom23/online_learning_system"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/nu11secur1ty/CVE-nu11secur1ty/tree/main/vendors/oretnom23/CVE-nu11-07","label":"github.com/nu11secur1ty/CVE-nu11secur1ty/tree/main/vendors/oretnom23/CVE-nu11-07","hostname":"github.com","tags":["X Refsource MISC","Exploit","Third Party Advisory"]},{"url":"https://github.com/DjebbarAnon/online-learning-system-v2-sqli-authentication-bypass-file-upload-unauthenticated-RCE","label":"github.com/DjebbarAnon/…","hostname":"github.com","tags":["X Refsource MISC","Exploit","Third Party Advisory"]},{"url":"http://packetstormsecurity.com/files/164985/Online-Learning-System-2.0-Remote-Code-Execution.html","label":"packetstormsecurity.com/files/164985/Online-Learning-System-2.0-Remote-Code-Execution.html","hostname":"packetstormsecurity.com","tags":["X Refsource MISC","Exploit","Third Party Advisory","VDB Entry"]},{"url":"https://www.nu11secur1ty.com/2021/09/cve-nu11-07-elearning-v2by-oretnom23-is.html","label":"www.nu11secur1ty.com/2021/09/cve-nu11-07-elearning-v2by-oretnom23-is.html","hostname":"www.nu11secur1ty.com","tags":["X Refsource MISC","Exploit","Third Party Advisory"]},{"url":"https://www.nu11secur1ty.com/2021/11/cve-2021-42580.html","label":"www.nu11secur1ty.com/2021/11/cve-2021-42580.html","hostname":"www.nu11secur1ty.com","tags":["X Refsource MISC","Exploit","Third Party Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-11-15T15:57:28.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T03:38:49.876Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T18:30:44.012Z","stale":false,"partial":false}}