Title: The sensitive information of uri may leak · Issue #8853 · apache/cloudstack · GitHub
Open Graph Title: The sensitive information of uri may leak · Issue #8853 · apache/cloudstack
X Title: The sensitive information of uri may leak · Issue #8853 · apache/cloudstack
Description: ISSUE TYPE Bug Report COMPONENT NAME cloudstack-service-secondary-storage CLOUDSTACK VERSION commit ID: 45d267ccbf2749c547cbbbac4a2cb1f3351dcaf2 on main branch. CONFIGURATION OS / ENVIRONMENT SUMMARY The sensitive information of URI may ...
Open Graph Description: ISSUE TYPE Bug Report COMPONENT NAME cloudstack-service-secondary-storage CLOUDSTACK VERSION commit ID: 45d267ccbf2749c547cbbbac4a2cb1f3351dcaf2 on main branch. CONFIGURATION OS / ENVIRONMENT SUMMA...
X Description: ISSUE TYPE Bug Report COMPONENT NAME cloudstack-service-secondary-storage CLOUDSTACK VERSION commit ID: 45d267ccbf2749c547cbbbac4a2cb1f3351dcaf2 on main branch. CONFIGURATION OS / ENVIRONMENT SUMMA...
Opengraph URL: https://github.com/apache/cloudstack/issues/8853
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The sensitive information of uri may leak","articleBody":"\u003c!--\r\nVerify first that your issue/request is not already reported on GitHub.\r\nAlso test if the latest release and main branch are affected too.\r\nAlways add information AFTER of these HTML comments, but no need to delete the comments.\r\n--\u003e\r\n\r\n##### ISSUE TYPE\r\n\u003c!-- Pick one below and delete the rest --\u003e\r\n * Bug Report\r\n\r\n\r\n##### COMPONENT NAME\r\n\u003c!--\r\nCategorize the issue, e.g. API, VR, VPN, UI, etc.\r\n--\u003e\r\n~~~\r\ncloudstack-service-secondary-storage \r\n~~~\r\n\r\n##### CLOUDSTACK VERSION\r\n\u003c!--\r\nNew line separated list of affected versions, commit ID for issues on main branch.\r\n--\u003e\r\n\r\n~~~\r\ncommit ID: 45d267ccbf2749c547cbbbac4a2cb1f3351dcaf2 on main branch.\r\n~~~\r\n\r\n##### CONFIGURATION\r\n\u003c!--\r\nInformation about the configuration if relevant, e.g. basic network, advanced networking, etc. N/A otherwise\r\n--\u003e\r\n\r\n\r\n##### OS / ENVIRONMENT\r\n\u003c!--\r\nInformation about the environment if relevant, N/A otherwise\r\n--\u003e\r\n\r\n\r\n##### SUMMARY\r\n\u003c!-- Explain the problem/feature briefly --\u003e\r\nThe sensitive information of URI may leak through \"logger.error\"\r\n\r\n\r\n##### STEPS TO REPRODUCE\r\n\u003c!--\r\nFor bugs, show exactly how to reproduce the problem, using a minimal test-case. Use Screenshots if accurate.\r\n\r\nFor new features, show how the feature would be used.\r\n--\u003e\r\n\r\n\u003c!-- Paste example playbooks or commands between quotes below --\u003e\r\n~~~\r\n\r\n~~~\r\n\r\n\u003c!-- You can also paste gist.github.com links for larger files --\u003e\r\n\r\n##### EXPECTED RESULTS\r\n\u003c!-- What did you expect to happen when running the steps above? --\u003e\r\n\r\n~~~\r\n\r\n~~~\r\n\r\n##### ACTUAL RESULTS\r\n\u003c!-- What actually happened? --\u003e\r\n\r\n\u003c!-- Paste verbatim command output between quotes below --\u003e\r\n~~~\r\n\r\n~~~\r\n\r\n#### error code location\r\n~~~\r\nprotected String parseCifsMountOptions(URI uri) {\r\n List\u003cNameValuePair\u003e args = URLEncodedUtils.parse(uri, \"UTF-8\");\r\n boolean foundUser = false;\r\n boolean foundPswd = false;\r\n StringBuilder extraOpts = new StringBuilder();\r\n for (NameValuePair nvp : args) {\r\n String name = nvp.getName();\r\n if (name.equals(\"user\")) {\r\n foundUser = true;\r\n logger.debug(\"foundUser is\" + foundUser);\r\n } else if (name.equals(\"password\")) {\r\n foundPswd = true;\r\n logger.debug(\"password is present in uri\");\r\n }\r\n\r\n extraOpts.append(name + \"=\" + nvp.getValue() + \",\");\r\n }\r\n\r\n if (logger.isDebugEnabled()) {\r\n logger.error(\"extraOpts now \" + extraOpts); //output \r\n }\r\n\r\n if (!foundUser || !foundPswd) {\r\n String errMsg = \"Missing user and password from URI. Make sure they\" + \"are in the query string and separated by '\u0026'. E.g. \"\r\n + \"cifs://example.com/some_share?user=foo\u0026password=bar\";\r\n logger.error(errMsg);\r\n throw new CloudRuntimeException(errMsg);\r\n }\r\n return extraOpts.toString();\r\n}\r\n~~~\r\n","author":{"url":"https://github.com/YLChen-007","@type":"Person","name":"YLChen-007"},"datePublished":"2024-03-31T02:59:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/8853/cloudstack/issues/8853"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:37e6bca9-2acf-550e-6bb8-0c5cc238b6f1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A370:288515:512050:6B2D6E:6A53002E |
| html-safe-nonce | c12550d8281497cbb2729250a3c8a6cc83efa6c1f30be14e06d73fafd9b28d98 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzcwOjI4ODUxNTo1MTIwNTA6NkIyRDZFOjZBNTMwMDJFIiwidmlzaXRvcl9pZCI6IjMzNTMyNzgwNTI5MzUzMzU5ODIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d7165080aeacb54f60b4c83f1f2577bc5e61b789c5a8884c2ef52b0bc4f22d1d |
| hovercard-subject-tag | issue:2216751801 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/apache/cloudstack/8853/issue_layout |
| twitter:image | https://opengraph.githubassets.com/387246ac263ed4ff2d9d7838caf23d8d0c79c404c85f879f98dd6c6e47bfed09/apache/cloudstack/issues/8853 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/387246ac263ed4ff2d9d7838caf23d8d0c79c404c85f879f98dd6c6e47bfed09/apache/cloudstack/issues/8853 |
| og:image:alt | ISSUE TYPE Bug Report COMPONENT NAME cloudstack-service-secondary-storage CLOUDSTACK VERSION commit ID: 45d267ccbf2749c547cbbbac4a2cb1f3351dcaf2 on main branch. CONFIGURATION OS / ENVIRONMENT SUMMA... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | YLChen-007 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/apache/cloudstack git https://github.com/apache/cloudstack.git |
| octolytics-dimension-user_id | 47359 |
| octolytics-dimension-user_login | apache |
| octolytics-dimension-repository_id | 9759448 |
| octolytics-dimension-repository_nwo | apache/cloudstack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 9759448 |
| octolytics-dimension-repository_network_root_nwo | apache/cloudstack |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width