{"action":"created","issue":{"url":"https://api.github.com/repos/KSP-KOS/KOS/issues/778","labels_url":"https://api.github.com/repos/KSP-KOS/KOS/issues/778/labels{/name}","comments_url":"https://api.github.com/repos/KSP-KOS/KOS/issues/778/comments","events_url":"https://api.github.com/repos/KSP-KOS/KOS/issues/778/events","html_url":"https://github.com/KSP-KOS/KOS/issues/778","id":67648273,"number":778,"title":"Malicious kOS scripts","user":{"login":"TDW89","id":5874693,"avatar_url":"https://avatars.githubusercontent.com/u/5874693?v=3","gravatar_id":"","url":"https://api.github.com/users/TDW89","html_url":"https://github.com/TDW89","followers_url":"https://api.github.com/users/TDW89/followers","following_url":"https://api.github.com/users/TDW89/following{/other_user}","gists_url":"https://api.github.com/users/TDW89/gists{/gist_id}","starred_url":"https://api.github.com/users/TDW89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TDW89/subscriptions","organizations_url":"https://api.github.com/users/TDW89/orgs","repos_url":"https://api.github.com/users/TDW89/repos","events_url":"https://api.github.com/users/TDW89/events{/privacy}","received_events_url":"https://api.github.com/users/TDW89/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-04-10T17:52:23Z","updated_at":"2015-04-11T12:44:51Z","closed_at":null,"body":"\r\noooh this is fun i can `log \"stuff that is not a script\" to \"/log/koslog.txt\".` (log folder needs to exist first so can only be done on the archive). hadn't thought of doing that before."},"comment":{"url":"https://api.github.com/repos/KSP-KOS/KOS/issues/comments/91837252","html_url":"https://github.com/KSP-KOS/KOS/issues/778#issuecomment-91837252","issue_url":"https://api.github.com/repos/KSP-KOS/KOS/issues/778","id":91837252,"user":{"login":"Dunbaratu","id":5216848,"avatar_url":"https://avatars.githubusercontent.com/u/5216848?v=3","gravatar_id":"","url":"https://api.github.com/users/Dunbaratu","html_url":"https://github.com/Dunbaratu","followers_url":"https://api.github.com/users/Dunbaratu/followers","following_url":"https://api.github.com/users/Dunbaratu/following{/other_user}","gists_url":"https://api.github.com/users/Dunbaratu/gists{/gist_id}","starred_url":"https://api.github.com/users/Dunbaratu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dunbaratu/subscriptions","organizations_url":"https://api.github.com/users/Dunbaratu/orgs","repos_url":"https://api.github.com/users/Dunbaratu/repos","events_url":"https://api.github.com/users/Dunbaratu/events{/privacy}","received_events_url":"https://api.github.com/users/Dunbaratu/received_events","type":"User","site_admin":false},"created_at":"2015-04-11T12:44:51Z","updated_at":"2015-04-11T12:44:51Z","body":"The simplest solution is to just deny all filenames containing any '\\' or '/'.  But I sort of wanted to allow the ability to descend DOWN into a subdirectory - just not up into a parent directory.\r\n\r\nSo how about: \r\n\r\n  * Can't contain colon anywhere (to stop things like \"C:\\\"\r\n  * Can't contain two consecutive dots '..' anywhere.\r\n  * Cannot begin with a '\\', or '/', but is allowed to have one elsewhere (for subfolders).\r\n\r\nWould that cover all the cases?\r\n"}}