{"action":"closed","issue":{"url":"https://api.github.com/repos/Londeren/Bitrix/issues/1","repository_url":"https://api.github.com/repos/Londeren/Bitrix","labels_url":"https://api.github.com/repos/Londeren/Bitrix/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Londeren/Bitrix/issues/1/comments","events_url":"https://api.github.com/repos/Londeren/Bitrix/issues/1/events","html_url":"https://github.com/Londeren/Bitrix/issues/1","id":211857234,"number":1,"title":"I have find a Reflected XSS vulnerability in this project","user":{"login":"jgj212","id":1484292,"avatar_url":"https://avatars2.githubusercontent.com/u/1484292?v=4","gravatar_id":"","url":"https://api.github.com/users/jgj212","html_url":"https://github.com/jgj212","followers_url":"https://api.github.com/users/jgj212/followers","following_url":"https://api.github.com/users/jgj212/following{/other_user}","gists_url":"https://api.github.com/users/jgj212/gists{/gist_id}","starred_url":"https://api.github.com/users/jgj212/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgj212/subscriptions","organizations_url":"https://api.github.com/users/jgj212/orgs","repos_url":"https://api.github.com/users/jgj212/repos","events_url":"https://api.github.com/users/jgj212/events{/privacy}","received_events_url":"https://api.github.com/users/jgj212/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-04T05:26:28Z","updated_at":"2018-03-13T11:52:16Z","closed_at":"2018-03-13T11:52:16Z","author_association":"NONE","body":"\r\nHello:\r\nI have find a Reflected XSS vulnerability in this project.\r\n\r\nThe vulnerability exists due to insufficient filtration of user-supplied data in “path” HTTP parameter that will be passed to “Bitrix-master/1C/bx_1c_import.php”. The infected source code is line 1590, there is no protection on $_GET[\"path\"]; if $_GET[\"path\"] contains evil js code, line 1590 will trigger untrusted code to be excuted on the browser side.\r\n![code1](https://cloud.githubusercontent.com/assets/1484292/23576353/fc95a13c-00dd-11e7-850f-d05fe0380085.png)\r\n\r\n\r\nSo if a attacker construct a special url as follow and send it to a victim, when the victim click the url, the code which is contained in the url will be executed on the victim's browser side to do some evil.\r\nhttp://your-web-root/Bitrix-master/1C/bx_1c_import.php?path=\"><script>alert(1);</script><\"\r\n\r\n\r\nThe follow scrrenshot is the result to click the upper url ( win7 spq x64 + firefox 51.0.1 32bit ):\r\n![sc](https://cloud.githubusercontent.com/assets/1484292/23576357/109245f0-00de-11e7-988e-7f8bb0081c73.png)\r\n\r\n\r\n\r\nDiscoverer: ADLab of Venustech"}}
{"actor":{"display_login":"Londeren"}}