{"action":"created","issue":{"url":"https://api.github.com/repos/phpMussel/phpMussel/issues/164","repository_url":"https://api.github.com/repos/phpMussel/phpMussel","labels_url":"https://api.github.com/repos/phpMussel/phpMussel/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/phpMussel/phpMussel/issues/164/comments","events_url":"https://api.github.com/repos/phpMussel/phpMussel/issues/164/events","html_url":"https://github.com/phpMussel/phpMussel/issues/164","id":341422274,"node_id":"MDU6SXNzdWUzNDE0MjIyNzQ=","number":164,"title":"can't detected PHP script in txt file","user":{"login":"1nFrastr","id":40130780,"node_id":"MDQ6VXNlcjQwMTMwNzgw","avatar_url":"https://avatars3.githubusercontent.com/u/40130780?v=4","gravatar_id":"","url":"https://api.github.com/users/1nFrastr","html_url":"https://github.com/1nFrastr","followers_url":"https://api.github.com/users/1nFrastr/followers","following_url":"https://api.github.com/users/1nFrastr/following{/other_user}","gists_url":"https://api.github.com/users/1nFrastr/gists{/gist_id}","starred_url":"https://api.github.com/users/1nFrastr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1nFrastr/subscriptions","organizations_url":"https://api.github.com/users/1nFrastr/orgs","repos_url":"https://api.github.com/users/1nFrastr/repos","events_url":"https://api.github.com/users/1nFrastr/events{/privacy}","received_events_url":"https://api.github.com/users/1nFrastr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-16T07:59:44Z","updated_at":"2018-07-16T12:57:57Z","closed_at":null,"author_association":"NONE","body":"## Server information\r\n\r\nphpMussel v1.5.0\r\n\r\nphp 5.6\r\n\r\nWAMP SERVER on win7\r\n\r\n## Issue\r\n\r\nI found that :\r\n\r\n1. writing PHP script into `.txt` file can’t be detected by phpMussel.\r\n2. writing  a PHP script and simply  changing its filetype name to `.php.txt`  can’t be detected by phpMussel either. \r\n\r\nBoth  of them can upload successfully ! That may cause  security issue .\r\n**Wating for your reply , thanks !**\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/phpMussel/phpMussel/issues/comments/405238731","html_url":"https://github.com/phpMussel/phpMussel/issues/164#issuecomment-405238731","issue_url":"https://api.github.com/repos/phpMussel/phpMussel/issues/164","id":405238731,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTIzODczMQ==","user":{"login":"1nFrastr","id":40130780,"node_id":"MDQ6VXNlcjQwMTMwNzgw","avatar_url":"https://avatars3.githubusercontent.com/u/40130780?v=4","gravatar_id":"","url":"https://api.github.com/users/1nFrastr","html_url":"https://github.com/1nFrastr","followers_url":"https://api.github.com/users/1nFrastr/followers","following_url":"https://api.github.com/users/1nFrastr/following{/other_user}","gists_url":"https://api.github.com/users/1nFrastr/gists{/gist_id}","starred_url":"https://api.github.com/users/1nFrastr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1nFrastr/subscriptions","organizations_url":"https://api.github.com/users/1nFrastr/orgs","repos_url":"https://api.github.com/users/1nFrastr/repos","events_url":"https://api.github.com/users/1nFrastr/events{/privacy}","received_events_url":"https://api.github.com/users/1nFrastr/received_events","type":"User","site_admin":false},"created_at":"2018-07-16T12:57:57Z","updated_at":"2018-07-16T12:57:57Z","author_association":"NONE","body":"Sure.\r\n\r\nActually , I just wrote  a simple PHP script like this ,\r\n\r\n```php \r\n<?php\r\necho \"phpMussel is awesome\";\r\n```\r\n\r\nthen placed this into a TXT file naemd `foo.txt` . On the other hand ,  a PHP file `foo.php` then changed its extension to `foo.php.txt` . Both of them can upload successfully . \r\n\r\nAlready confirmed `chameleon_from_php=true` in `config.ini` file . \r\n\r\nThanks for your efforts on phpMussel and quick reply for my questions , it behaves excellently while uploading  a fake image file including PHP chamelon.\r\n\r\nBy the way , it seems that you haven't done a great test for this project ...\r\n"}}
{"actor":{"display_login":"1nFrastr"}}