{"id":29891,"date":"2025-04-23T16:56:51","date_gmt":"2025-04-23T16:56:51","guid":{"rendered":""},"modified":"2025-06-07T23:17:48","modified_gmt":"2025-06-08T05:17:48","slug":"cve-2024-40072-high-risk-sql-injection-vulnerability-in-sourcecodester-online-id-generator-system-1-0","status":"publish","type":"post","link":"https:\/\/www.ameeba.com\/blog\/cve-2024-40072-high-risk-sql-injection-vulnerability-in-sourcecodester-online-id-generator-system-1-0\/","title":{"rendered":"<strong>CVE-2024-40072: High-Risk SQL Injection Vulnerability in Sourcecodester Online ID Generator System 1.0<\/strong>"},"content":{"rendered":"<p><strong>Overview<\/strong><\/p>\n<p>In the ever-evolving landscape of cybersecurity, a newly discovered vulnerability demands immediate attention. The vulnerability, identified as CVE-2024-40072, affects the Sourcecodester Online ID Generator System 1.0. This <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-32618-sql-injection-vulnerability-in-pickplugins-wishlist\/\"  data-wpil-monitor-id=\"34086\">vulnerability brings to light a critical SQL injection<\/a> risk via the id parameter, with potential for system compromise or data leakage. Its high severity score of 9.8 reflects the significant risk it poses to affected <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-44192-high-severity-sql-injection-vulnerability-in-simple-barangay-management-system-v1-0\/\"  data-wpil-monitor-id=\"42122\">systems<\/a>, and underscores the importance of rapid mitigation.<\/p>\n<p><strong>Vulnerability Summary<\/strong><\/p>\n<p>CVE ID: CVE-2024-40072<br \/>\nSeverity: Critical (9.8)<br \/>\nAttack Vector: Network<br \/>\nPrivileges Required: None<br \/>\nUser Interaction: None<br \/>\nImpact: <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-22900-stack-overflow-vulnerability-in-totolink-n600r-leading-to-potential-system-compromise\/\"  data-wpil-monitor-id=\"35178\">System compromise and potential<\/a> data leakage<\/p>\n<p><strong>Affected Products<\/strong><\/p><div id=\"ameeb-154270031\" class=\"ameeb-content-2 ameeb-entity-placement\"><div style=\"border-left: 4px solid #555; padding-left: 20px; margin: 48px 0; font-family: Roboto, sans-serif; color: #ffffff; line-height: 1.6; max-width: 700px;\">\r\n  <h2 style=\"margin-top: 0; font-size: 20px; font-weight: 600; display: flex; align-items: center;\">\r\n    <a href=\"https:\/\/www.ameeba.com\/chat\" style=\"display: inline-flex; align-items: center; margin-right: 8px;\">\r\n      <img decoding=\"async\" src=\"https:\/\/www.ameeba.com\/blog\/wp-content\/uploads\/2025\/10\/Best-App-icon-Ameeba.png\" alt=\"Ameeba Chat Icon\" style=\"width: 40px; height: 40px;\" \/>\r\n    <\/a>\r\n    A new way to communicate\r\n  <\/h2>\r\n\r\n  <p style=\"margin-bottom: 12px;\">\r\n    Ameeba Chat is built on encrypted identity, not personal profiles.\r\n  <\/p>\r\n\r\n  <p style=\"margin-bottom: 16px;\">\r\n    Message, call, share files, and coordinate with identities kept separate.\r\n  <\/p>\r\n\r\n  <ul style=\"list-style: none; padding-left: 0; margin-bottom: 20px;\">\r\n    <li>\u2022 Encrypted identity<\/li>\r\n    <li>\u2022 Ameeba Chat authenticates access<\/li>\r\n    <li>\u2022 Aliases and categories<\/li>\r\n    <li>\u2022 End-to-end encrypted chat, calls, and files<\/li>\r\n    <li>\u2022 Secure notes for sensitive information<\/li>\r\n  <\/ul>\r\n\r\n  <p style=\"font-style: italic; font-weight: 600; margin-bottom: 24px;\">\r\n    Private communication, rethought.\r\n  <\/p>\r\n\r\n  <div style=\"display: flex; flex-wrap: wrap; gap: 12px;\">\r\n    <a href=\"https:\/\/www.ameeba.com\/chat\/download\" style=\"background-color: #ffffff; color: #000000; padding: 10px 20px; text-decoration: none; border-radius: 6px; font-weight: 500;\">Download Ameeba Chat<\/a>\r\n    <a href=\"https:\/\/www.ameeba.com\/chat\" style=\"border: 1px solid #ffffff; color: #ffffff; padding: 10px 20px; text-decoration: none; border-radius: 6px; font-weight: 500;\">Learn More<\/a>\r\n  <\/div>\r\n<\/div>\r\n<\/div>\n<p>Product | Affected Versions<\/p>\n<p><a href=\"https:\/\/www.ameeba.com\/blog\/cve-2024-40073-critical-sql-injection-vulnerability-in-sourcecodester-online-id-generator-system-1-0\/\"  data-wpil-monitor-id=\"36387\">Sourcecodester Online ID Generator System<\/a> | 1.0<\/p>\n<p><strong>How the Exploit Works<\/strong><\/p>\n<p>The vulnerability lies in the <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-2007-wordpress-plugin-vulnerability-leads-to-arbitrary-file-deletion-and-potential-system-compromise\/\"  data-wpil-monitor-id=\"34595\">id parameter of the ID Generator system&#8217;s<\/a> admin page. By manipulating the id parameter value, an attacker can <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2023-6634-command-injection-vulnerability-in-learnpress-wordpress-plugin\/\"  data-wpil-monitor-id=\"34520\">inject malicious SQL commands<\/a> into the system. These commands may <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2023-48243-critical-remote-code-execution-vulnerability-allowing-unauthorized-file-upload\/\"  data-wpil-monitor-id=\"34129\">allow unauthorized<\/a> access, data manipulation, or even a system takeover. The absence of proper <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-31234-input-sanitization-flaw-leading-to-system-termination-and-kernel-memory-corruption\/\"  data-wpil-monitor-id=\"47872\">sanitization of user-supplied inputs<\/a> enables this exploit.<\/p>\n<p><strong>Conceptual Example Code<\/strong><\/p><div id=\"ameeb-3876108905\" class=\"ameeb-content ameeb-entity-placement\"><div class=\"poptin-embedded\" data-id=\"f6b387694f681\"><\/div>\r\n\r\n\r\n\r\n\r\n\r\n<\/div>\n<p>Here is a conceptual example of how an attacker might <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2023-50123-exploitable-vulnerability-in-hozard-alarm-system-sms-authentication\/\"  data-wpil-monitor-id=\"34908\">exploit this vulnerability<\/a>:<\/p>\n<pre><code class=\"\" data-line=\"\">GET \/id_generator\/admin\/?page=generate\/index&amp;id=1 UNION SELECT ALL FROM users -- HTTP\/1.1\nHost: target.example.com<\/code><\/pre>\n<p>This HTTP GET request uses an SQL UNION operator to combine the results of the original query (which was intended to fetch a single ID) with a second query that retrieves all <a href=\"https:\/\/www.ameeba.com\/blog\/the-alabama-cybersecurity-breach-unpacking-the-recent-user-data-compromise\/\"  data-wpil-monitor-id=\"47873\">data from the &#8216;users<\/a>&#8216; table. The &#8216;&#8211;&#8216; at the end of the <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-46458-critical-cross-site-request-forgery-csrf-vulnerability-leading-to-sql-injection-in-occupancyplan\/\"  data-wpil-monitor-id=\"55438\">request is an SQL<\/a> comment, which causes the system to ignore any following text. This could allow the attacker to bypass any additional parameters that the <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2021-40367-critical-vulnerability-in-syngo-fastview-allows-potential-system-compromise\/\"  data-wpil-monitor-id=\"40931\">system<\/a> might append to the query.<\/p>\n<p><strong>Prevention and Mitigation<\/strong><\/p>\n<p>The best course of action for administrators of the <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2024-40071-arbitrary-file-upload-vulnerability-in-sourcecodester-online-id-generator-system-1-0\/\"  data-wpil-monitor-id=\"36559\">Sourcecodester Online ID Generator System<\/a> 1.0 is to apply the vendor&#8217;s patch as soon as possible. In the absence of a patch, a Web Application Firewall (WAF) or an Intrusion Detection System (IDS) can be used as temporary mitigation. It is also recommended to regularly update and patch systems, as well as to use input validation and prepared statements to prevent <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-32119-blind-sql-injection-vulnerability-in-cardgate-payments-for-woocommerce-plugin\/\"  data-wpil-monitor-id=\"34567\">SQL injection<\/a> attacks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview In the ever-evolving landscape of cybersecurity, a newly discovered vulnerability demands immediate attention. The vulnerability, identified as CVE-2024-40072, affects the Sourcecodester Online ID Generator System 1.0. This vulnerability brings to light a critical SQL injection risk via the id parameter, with potential for system compromise or data leakage. Its high severity score of 9.8 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"footnotes":""},"categories":[1],"tags":[],"vendor":[],"product":[],"attack_vector":[74],"asset_type":[],"severity":[],"exploit_status":[],"class_list":["post-29891","post","type-post","status-publish","format-standard","hentry","category-uncategorized","attack_vector-sql-injection"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/29891","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/comments?post=29891"}],"version-history":[{"count":13,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/29891\/revisions"}],"predecessor-version":[{"id":49568,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/29891\/revisions\/49568"}],"wp:attachment":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/media?parent=29891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/categories?post=29891"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/tags?post=29891"},{"taxonomy":"vendor","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/vendor?post=29891"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/product?post=29891"},{"taxonomy":"attack_vector","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/attack_vector?post=29891"},{"taxonomy":"asset_type","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/asset_type?post=29891"},{"taxonomy":"severity","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/severity?post=29891"},{"taxonomy":"exploit_status","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/exploit_status?post=29891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}