Giter Club home page Giter Club logo

ldap-sanitizer's Introduction

ldap-sanitizer

Sanitize untrusted user input for LDAP queries

LDAP v3 RFC on DNs

LDAP RFC on Search Filters (queries)


OWASP Escape Chars

DN Escape Chars

https://www.owasp.org/index.php/LDAP_Injection_Prevention_Cheat_Sheet

, \ # + < > ; " =

Filter Escape Chars

https://www.owasp.org/index.php/Preventing_LDAP_Injection_in_Java

Note: NUL char in JS is \0 or \u0000

\ * ( ) NUL


webappsec.org Escape Chars

http://projects.webappsec.org/w/page/13246947/LDAP%20Injection

DN Escape Chars

& ! | = < > , + - " ' ;

Filter Escape Chars

Note: NUL char in JS is \0 or \u0000

( ) \ * / NUL


See Also

http://rlmueller.net/CharactersEscaped.htm

https://blogs.msdn.microsoft.com/securitytools/2010/09/30/antixss-4-0-released/

See section on LDAP encoding changes


Questions

Do the following chars need escaping for user input in DNs?

& ! | = ' -

ldap-sanitizer's People

Contributors

brycejech avatar

Watchers

James Cloos avatar  avatar

ldap-sanitizer's Issues

What license is this code released under?

Things that you create and don't specify a license for, are automatically copyrighted to you - and not re-usable by others without explicit permission for each use.

As far as I can see, there's no license specified for this repository, so anyone who wants to use it would need to get permission directly from you for each use.

Is this intentional? If not, you should specify the license, so others can use it.

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.