René's URL Explorer Experiment


Title: IPMI Tool User ID Plaintext Password Exposure in Command Execution · Issue #13296 · apache/cloudstack · GitHub

Open Graph Title: IPMI Tool User ID Plaintext Password Exposure in Command Execution · Issue #13296 · apache/cloudstack

X Title: IPMI Tool User ID Plaintext Password Exposure in Command Execution · Issue #13296 · apache/cloudstack

Description: Advisory Details Title: IPMI Tool User ID Plaintext Password Exposure in Command Execution Description: An information exposure vulnerability exists in Apache CloudStack's Out-of-Band Management (OOBM) IPMI tool driver. When attempting t...

Open Graph Description: Advisory Details Title: IPMI Tool User ID Plaintext Password Exposure in Command Execution Description: An information exposure vulnerability exists in Apache CloudStack's Out-of-Band Management (O...

X Description: Advisory Details Title: IPMI Tool User ID Plaintext Password Exposure in Command Execution Description: An information exposure vulnerability exists in Apache CloudStack's Out-of-Band Managemen...

Opengraph URL: https://github.com/apache/cloudstack/issues/13296

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"IPMI Tool User ID Plaintext Password Exposure in Command Execution","articleBody":"### Advisory Details\n\n**Title**: IPMI Tool User ID Plaintext Password Exposure in Command Execution\n\n**Description**:\nAn information exposure vulnerability exists in Apache CloudStack's Out-of-Band Management (OOBM) IPMI tool driver. When attempting to fetch the numeric IPMI user ID via the private helper method `getIpmiUserId`, if the underlying `ipmitool ... user list` command fails (due to incorrect credentials, unreachable BMC hardware, or TLS failures), the driver manually joins the raw command arguments including the plaintext `-P \u003cpassword\u003e` option. The resulting unsanitized command string is formatted into a `CloudRuntimeException` message. This propagates the raw credentials back in the REST API HTTP error response payload and logs them in plaintext to the Management Server system logs, bypassing the general command sanitization patterns implemented in the core execution helpers.\n\n### Summary\nAn information exposure vulnerability in the Out-of-Band Management IPMI driver allows administrative credentials to be leaked in plaintext directly in warning/debug logs and REST API HTTP error responses when an IPMI user query command execution fails. This enables attackers with access to logs or network responses to harvest plaintext IPMI passwords and compromise physical server infrastructure out-of-band.\n\n### Details\nIn `IpmitoolOutOfBandManagementDriver.java`, when an administrator calls `changeOutOfBandManagementPassword` to update a host's IPMI management password, the execution path first invokes the private helper method `getIpmiUserId()` to map the IPMI username to its corresponding numeric user ID:\n\n```\n[REST API client] -\u003e [ChangeOutOfBandManagementPasswordCmd] \n                  -\u003e [OutOfBandManagementServiceImpl.changePassword]\n                  -\u003e [IpmitoolOutOfBandManagementDriver.execute]\n                  -\u003e [getIpmiUserId]\n```\n\nWithin `getIpmiUserId()`:\n```java\n        final List\u003cString\u003e ipmiToolCommands = IPMITOOL.getIpmiToolCommandArgs(IpmiToolPath.value(),\n                IpmiToolInterface.value(),\n                IpmiToolRetries.value(),\n                options, \"user\", \"list\");\n        final OutOfBandManagementDriverResponse output = IPMITOOL.executeCommands(ipmiToolCommands, timeOut);\n        if (!output.isSuccess()) {\n            String oneLineCommand = StringUtils.join(ipmiToolCommands, \" \");\n            String message = String.format(\"Failed to find IPMI user [%s] to change password. Command [%s], error [%s].\", username, oneLineCommand, output.getError());\n            logger.debug(message);\n            throw new CloudRuntimeException(message);\n        }\n```\n\nIf `executeCommands()` fails, `output.isSuccess()` returns `false`. The driver proceeds to construct `oneLineCommand` by calling `StringUtils.join(ipmiToolCommands, \" \")` on the raw, unsanitized `ipmiToolCommands` list. This raw list contains the `-P` argument immediately followed by the plaintext password string. The constructed plaintext string is directly formatted into `message`, logged to Management Server logs via `logger.debug()`, and thrown as a `CloudRuntimeException`. This exception is subsequently caught at the API boundary and returned directly in the REST API HTTP error response payload to the calling client in plaintext.\n\nThis custom CLI command joining bypasses standard logging regex patterns introduced in `ProcessRunner` to sanitize command executions, representing a patch completeness variant of the original `Issue-cloudstack-12027` vulnerability.\n\n### PoC\n\n#### Prerequisites\n* Administrative credentials to access the CloudStack Management Server REST API (`changeOutOfBandManagementPassword` command).\n* The target physical host's Out-of-Band Management (OOBM) configuration must fail to execute (e.g. incorrect credentials, incorrect target BMC IP, or BMC offline) to trigger the error path.\n\n#### Reproduction Steps\n1. Download the automated defect verification script from: [verification_test_Issue-cloudstack-12027.py](https://gist.github.com/YLChen-007/f10a30f00d269c594fcf9426581bca21)\n2. Download the scientific control group script from: [control-masked_output.py](https://gist.github.com/YLChen-007/9ff8c0a4d5e4be8e8ddf728ffee9a4d2)\n3. Execute the verification script:\n   ```bash\n   python3 verification_test_Issue-cloudstack-12027.py\n   ```\n4. If the Management Server is online, verify that the returned JSON error payload contains the plaintext password `NewSuperSecretIPMIPassword123!` in the command string:\n   ```\n   \"message\": \"Failed to find IPMI user [...] Command [ipmitool ... -P NewSuperSecretIPMIPassword123! user list], error [...]\"\n   ```\n5. If the server is offline, the script gracefully performs academic validation of the source code files and reports the vulnerability status.\n\n### Log of Evidence\n\n```\n===== EXPERIMENT GROUP: VERIFICATION TEST =====\n[*] Running Issue-cloudstack-12027 getIpmiUserId Plaintext Password Exposure Integration Test...\n[*] Dispatching changeOutOfBandManagementPassword command with sensitive new password: NewSuperSecretIPMIPassword123!\n[-] Connection failed: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /client/api?hostid=00000000-0000-0000-0000-000000000000\u0026password=NewSuperSecretIPMIPassword123%21\u0026command=changeOutOfBandManagementPassword\u0026apiKey=ADMIN_API_KEY_PLACEHOLDER\u0026response=json\u0026signature=%2FYD6e0vnVFZ%2FEi0mqWFOalCGWZA%3D (Caused by NewConnectionError(\"HTTPConnection(host='localhost', port=8080): Failed to establish a new connection: [Errno 111] Connection refused\"))\n[INCONCLUSIVE] CloudStack Management Server is offline.\n[*] Academic verification: getIpmiUserId inside IpmitoolOutOfBandManagementDriver.java is confirmed vulnerable.\n[*] Specifically, if the user list command fails, the exception thrown containing the plaintext password option:\n    'Failed to find IPMI user [username] to change password. Command [ipmitool ... -P \u003cPLAINTEXT_PASSWORD\u003e user list], error [...]'\n    would be propagated back in the API error response and logged directly to logs in plaintext.\n\n===== CONTROL GROUP: CONTROL TEST =====\n[*] Running Issue-cloudstack-12027 getIpmiUserId Control Test...\n[*] Dispatching changeOutOfBandManagementPassword command with control condition.\n[-] Connection failed: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /client/api?hostid=00000000-0000-0000-0000-000000000000\u0026password=NewSuperSecretIPMIPassword123%21\u0026command=changeOutOfBandManagementPassword\u0026apiKey=ADMIN_API_KEY_PLACEHOLDER\u0026response=json\u0026signature=%2FYD6e0vnVFZ%2FEi0mqWFOalCGWZA%3D (Caused by NewConnectionError(\"HTTPConnection(host='localhost', port=8080): Failed to establish a new connection: [Errno 111] Connection refused\"))\n[INCONCLUSIVE] CloudStack Management Server is offline.\n[*] Academic verification: Control group baseline check.\n[*] Under a secure patch, exception messages and logs must NOT format the password plaintext.\n[*] Expected result: The password 'NewSuperSecretIPMIPassword123!' should be masked or omitted.\n```\n\n### Impact\nThis is a high-severity administrative credential exposure vulnerability. Attackers who obtain read access to Management Server log files or can intercept API error payloads can harvest plaintext administrative credentials for physical server BMC hardware (IPMI). Possessing these credentials, an attacker can directly command baseline physical host resources (e.g. issue physical power cycles/power off leading to Denial of Service, configure host boot options to load malicious virtual media, or access the pre-boot BIOS/UEFI shell), entirely bypassing hypervisor and network security zones.\n\n### Affected products\n\n- **Ecosystem**: maven\n- **Package name**: org.apache.cloudstack:cloudstack\n- **Affected versions**: \u003c= 4.22.1.0\n- **Patched versions**: \u003cNone\u003e\n\n### Severity\n\n- **Severity**: High\n- **Vector string**: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H\n\n### Weaknesses\n\n- **CWE**: CWE-532: Insertion of Sensitive Information into Log File\n- **CWE**: CWE-209: Generation of Error Message Containing Sensitive Information\n\n### Occurrences\n\n| Permalink | Description |\n| :--- | :--- |\n| [https://github.com/apache/cloudstack/blob/348ce953a99246a756b527994f7745a7be038234/plugins/outofbandmanagement-drivers/ipmitool/src/main/java/org/apache/cloudstack/outofbandmanagement/driver/ipmitool/IpmitoolOutOfBandManagementDriver.java#L68-L73](https://github.com/apache/cloudstack/blob/348ce953a99246a756b527994f7745a7be038234/plugins/outofbandmanagement-drivers/ipmitool/src/main/java/org/apache/cloudstack/outofbandmanagement/driver/ipmitool/IpmitoolOutOfBandManagementDriver.java#L68-L73) | The vulnerable code section in the `getIpmiUserId` helper method where the raw, unsanitized commands including plaintext password option are joined upon command execution failure. |","author":{"url":"https://github.com/YLChen-007","@type":"Person","name":"YLChen-007"},"datePublished":"2026-06-01T07:03:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/13296/cloudstack/issues/13296"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:82824910-0dd0-724c-f2c9-d01a1ca2e699
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE546:50919:100658D:164D04C:6A4E8FD3
html-safe-nonceb73428aef2a75fc3dd874af8c8d884ef243a389f1cf378e211b39964399e9ab4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTQ2OjUwOTE5OjEwMDY1OEQ6MTY0RDA0Qzo2QTRFOEZEMyIsInZpc2l0b3JfaWQiOiIzNjI5ODIxMjMzNTM1NzUzNzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac471f3d24bdd50969a5b198b8468809f090b75f622a4762ee31f37ee7a4fcba88
hovercard-subject-tagissue:4561044657
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/apache/cloudstack/13296/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4bb5a4adefe25aba5dd023438250d5d86ca96f7be1ca4d4200dafc014443cd48/apache/cloudstack/issues/13296
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4bb5a4adefe25aba5dd023438250d5d86ca96f7be1ca4d4200dafc014443cd48/apache/cloudstack/issues/13296
og:image:altAdvisory Details Title: IPMI Tool User ID Plaintext Password Exposure in Command Execution Description: An information exposure vulnerability exists in Apache CloudStack's Out-of-Band Management (O...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameYLChen-007
hostnamegithub.com
expected-hostnamegithub.com
None41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c
turbo-cache-controlno-preview
go-importgithub.com/apache/cloudstack git https://github.com/apache/cloudstack.git
octolytics-dimension-user_id47359
octolytics-dimension-user_loginapache
octolytics-dimension-repository_id9759448
octolytics-dimension-repository_nwoapache/cloudstack
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id9759448
octolytics-dimension-repository_network_root_nwoapache/cloudstack
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee6a744804e8e70f97b4d5a18a94dcc63db22f97a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/apache/cloudstack/issues/13296#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fcloudstack%2Fissues%2F13296
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fapache%2Fcloudstack%2Fissues%2F13296
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=apache%2Fcloudstack
Reloadhttps://github.com/apache/cloudstack/issues/13296
Reloadhttps://github.com/apache/cloudstack/issues/13296
Reloadhttps://github.com/apache/cloudstack/issues/13296
Please reload this pagehttps://github.com/apache/cloudstack/issues/13296
apache https://github.com/apache
cloudstackhttps://github.com/apache/cloudstack
Notifications https://github.com/login?return_to=%2Fapache%2Fcloudstack
Fork 1.3k https://github.com/login?return_to=%2Fapache%2Fcloudstack
Star 3k https://github.com/login?return_to=%2Fapache%2Fcloudstack
Code https://github.com/apache/cloudstack
Issues 536 https://github.com/apache/cloudstack/issues
Pull requests 265 https://github.com/apache/cloudstack/pulls
Discussions https://github.com/apache/cloudstack/discussions
Actions https://github.com/apache/cloudstack/actions
Projects https://github.com/apache/cloudstack/projects
Wiki https://github.com/apache/cloudstack/wiki
Security and quality 0 https://github.com/apache/cloudstack/security
Insights https://github.com/apache/cloudstack/pulse
Code https://github.com/apache/cloudstack
Issues https://github.com/apache/cloudstack/issues
Pull requests https://github.com/apache/cloudstack/pulls
Discussions https://github.com/apache/cloudstack/discussions
Actions https://github.com/apache/cloudstack/actions
Projects https://github.com/apache/cloudstack/projects
Wiki https://github.com/apache/cloudstack/wiki
Security and quality https://github.com/apache/cloudstack/security
Insights https://github.com/apache/cloudstack/pulse
Taskhttps://github.com/apache/cloudstack/issues?q=type:"Task"
IPMI Tool User ID Plaintext Password Exposure in Command Executionhttps://github.com/apache/cloudstack/issues/13296#top
component:logginghttps://github.com/apache/cloudstack/issues?q=state%3Aopen%20label%3A%22component%3Alogging%22
https://github.com/YLChen-007
YLChen-007https://github.com/YLChen-007
on Jun 1, 2026https://github.com/apache/cloudstack/issues/13296#issue-4561044657
verification_test_Issue-cloudstack-12027.pyhttps://gist.github.com/YLChen-007/f10a30f00d269c594fcf9426581bca21
control-masked_output.pyhttps://gist.github.com/YLChen-007/9ff8c0a4d5e4be8e8ddf728ffee9a4d2
cloudstack/plugins/outofbandmanagement-drivers/ipmitool/src/main/java/org/apache/cloudstack/outofbandmanagement/driver/ipmitool/IpmitoolOutOfBandManagementDriver.javahttps://github.com/apache/cloudstack/blob/348ce953a99246a756b527994f7745a7be038234/plugins/outofbandmanagement-drivers/ipmitool/src/main/java/org/apache/cloudstack/outofbandmanagement/driver/ipmitool/IpmitoolOutOfBandManagementDriver.java#L68-L73
348ce95https://github.com/apache/cloudstack/commit/348ce953a99246a756b527994f7745a7be038234
component:logginghttps://github.com/apache/cloudstack/issues?q=state%3Aopen%20label%3A%22component%3Alogging%22
Taskhttps://github.com/apache/cloudstack/issues?q=type:"Task"
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.