Skip to main content

Utility functions to prevent possible XSS attack on django/mako templates

Project description

Utilities to prevent possible Cross Site Scripting (XSS) attacks on Django/Mako templates.

Overview

This repo houses utility functions to protect edx codebase (Python, Javascript and other templating engine eg django/mako) against possible XSS attacks. Helper code include html & js escaping filters for django and mako templates. For more information, please read Preventing Cross Site Scripting Vulnerabilities.

Documentation

The full documentation is in the docs directory TODO: Publish to https://xss-utils.readthedocs.org.

License

The code in this repository is licensed under the AGPL 3.0 unless otherwise noted.

Please see LICENSE.txt for details.

How To Contribute

Contributions are very welcome.

Please read How To Contribute for details.

Even though they were written with edx-platform in mind, the guidelines should be followed for Open edX code in general.

PR description template should be automatically applied if you are sending PR from github interface; otherwise you can find it it at PULL_REQUEST_TEMPLATE.md

Issue report template should be automatically applied if you are sending it from github UI as well; otherwise you can find it at ISSUE_TEMPLATE.md

Reporting Security Issues

Please do not report security issues in public. Please email security@edx.org.

Getting Help

Have a question about this repository, or about Open edX in general? Please refer to this list of resources if you need any assistance.

Change Log

Unreleased

[0.4.0] - 2022-01-20

Added

  • Added Support for Django40

Dropped

  • Dropped Django22, 30, 31 from CI

[0.3.0] - 2021-07-07

Added

  • Support for django3.0, 3.1, 3.2

[0.1.0] - 2018-08-17

Added

  • Utilities to enable html escaping, preventing Cross Site Scripting (XSS) attacks in Django templates.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xss-utils-0.4.0.tar.gz (20.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xss_utils-0.4.0-py2.py3-none-any.whl (17.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file xss-utils-0.4.0.tar.gz.

File metadata

  • Download URL: xss-utils-0.4.0.tar.gz
  • Upload date:
  • Size: 20.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for xss-utils-0.4.0.tar.gz
Algorithm Hash digest
SHA256 3324b99f9805d24faef0d1dbd85cedec5d5a7d54c621ce620ec6d74a78e140e4
MD5 12f17e4d706cd4dcdf8d2af4eae629a5
BLAKE2b-256 c4d9dbb1b5b46c96993d66265d7467ae6d6c07e0e49931dfdc6717a58ecd7126

See more details on using hashes here.

File details

Details for the file xss_utils-0.4.0-py2.py3-none-any.whl.

File metadata

  • Download URL: xss_utils-0.4.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for xss_utils-0.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0641ac6840aaa98775aaf9b028af2f2c902b403a3397aa8006ff35e092ba77ba
MD5 af6c666ee09f64ca9a65b76847ea4e35
BLAKE2b-256 7fe016060921f9c8c2d01e70dd67149c8db730e77c25a23c4c07fb7e8eb28056

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page