Giter Club home page Giter Club logo

notifications-utils's Introduction

notifications-utils

Shared Python code for GOV.UK Notify applications. Standardises how to do logging, rendering message templates, parsing spreadsheets, talking to external services and more.

Setting up

Python version

This repo is written in Python 3.

Pre-commit

We use pre-commit to ensure that committed code meets basic standards for formatting, and will make basic fixes for you to save time and aggravation.

Install pre-commit system-wide with, eg brew install pre-commit. Then, install the hooks in this repository with pre-commit install --install-hooks.

To test the library

# install dependencies, etc.
make bootstrap

# run the tests
make test

Publishing a new version

Versioning should be done by running the make version-[type of change] command, following semantic versioning. For example

make version-patch

Include a short summary (sentence or two) about the changes you've made in CHANGELOG.md. Please do this even if you're only making a minor or patch version change.

notifications-utils's People

Contributors

allait avatar ashimali avatar bandesz avatar benthorner avatar blesseddev avatar corlettb avatar crystalpea avatar dependabot[bot] avatar edwardhorsford avatar gov-cjwaszczuk avatar idavidmcdonald avatar karlchillmaid avatar kentsanggds avatar klssmith avatar leohemsted avatar mannickutd avatar minglis avatar pcraig3 avatar pyup-bot avatar quis avatar richardc0 avatar risicle avatar sakisv avatar samuelhwilliams avatar servingupaces avatar tombye avatar whpearson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

notifications-utils's Issues

Subversion of newline truncation using unicode characters

Hi there,

While looking at some template injection vulnerabilities, I've spotted that you can bypass newline truncation (defined here or here) by sending the dreaded unicode 'hangul filler' character in our personalisations.

This could be utilised by a dodgy character who wants to hide some portion of the email content (if, say, they've utilised template injection to create a phishing email)

This can be represented using the following unicode sequence: ㅤ

The below screenshot shows how it appears in notify:

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.