Skip to content

Python : Add support for detecting XSLT Injection #91

Description

CVE

There is no CVE for this.

Report

This query adds Xslt injection query to codeql-python. It models the lxml package.

It detects the following code patterns.

root = etree.XML("<xmlContent>")
find_text = etree.XSLT("`sink`")
sink = etree.XML(xsltQuery)
tree = etree.parse(f)
result_tree = tree.xslt(sink)

The PR also includes necessary tests for the same.

Link to the corresponding PR: [github/codeql#3521]

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

    All For OneSubmissions to the All for One, One for All bounty

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions