Skip to content

[Bug]Insecure SAXParserFactory configuration allows dtd #5704

Description

@supercharger03

Describe the bug
semanticcpg/src/main/scala/io/shiftleft/semanticcpg/utils/SecureXmlParsing.scala, line 19:

spf.setFeature("http://apache.org/xml/features/disallow-doctype-decl", false)

this feature should be set to true instead of false to disallow dtd and prevent XXE attacks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions