जमा करें #865703: redocly redocly-cli 2.32.2 Path Traversalजानकारी

शीर्षकredocly redocly-cli 2.32.2 Path Traversal
विवरणOutput file paths are built directly from untrusted specification content (component names, and x-codeSamples lang values) with no traversal guard, so a crafted name writes files outside the output directory with attacker controlled content. redocly split builds output paths directly from untrusted specification content with no traversal guard. A component key (components.<type>.<key>) is used raw in getFileNamePath (packages/cli/src/commands/split/utils/iterate-components.ts:70 and get-file-name-path.ts), so a key containing ../ escapes the output directory and writes a YAML or JSON file there. A second vector is x-codeSamples[].lang, where escapeLanguageName replaces only the first / (no global flag) in packages/cli/src/utils/miscellaneous.ts:150, allowing traversal and writing fully raw attacker content. POC: https://gist.github.com/thegr1ffyn/0c20648c521a660fbbdf2adbe380137b
स्रोत⚠️ https://github.com/Redocly/redocly-cli/pull/2891
उपयोगकर्ता
 thegr1ffyn (UID 98937)
सबमिशन22/06/2026 10:03 PM (2 महीनों पहले)
संयम08/08/2026 04:06 PM (2 months later)
स्थितिस्वीकृत
VulDB प्रविष्टि387186 [redocly redocly-cli तक 2.32.2 Split Command iterate-components.ts निर्देशिका ट्रैवर्सल]
अंक20

Interested in the pricing of exploits?

See the underground prices here!