json-ld / json-ld.org

JSON for Linked Data's documentation and playground site
https://json-ld.org/
Other
852 stars 151 forks source link

JSON-LD Context similarity to XML External Entity attack #825

Closed hmottestad closed 8 months ago

hmottestad commented 8 months ago

An 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.

JSON-LD supports referencing a context stored online or on the local file system. This seems to allow for the same attack surface as with XML External Entity.

See: https://owasp.org/www-community/vulnerabilities/XML_External_Entity_(XXE)_Processing

BigBlueHat commented 8 months ago

Closing in favor of keeping conversation on https://github.com/w3c/json-ld-syntax/issues/421

Thanks for your participation, @hmottestad!