Git Product home page Git Product logo

sslhaf's People

Contributors

grimreaper avatar ivanr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar

sslhaf's Issues

BEAST detection is unreliable

The BEAST detection code assumes all client writes will use the 1/n-1 split. However, the first write is not vulnerable to the attack, which is why some clients split from the 2nd write onwards.

The solution is to watch for the 2nd and 3rd write, and detect mitigations based on that. Further, because most HTTP requests consist of a single write, BEAST mitigation will work only when enough data is sent by clients. In practice, that means only longer POST requests.

Doesn't build against apache2.4

On a fairly standard Ubuntu saucy install, I can build sslhaf, but not mod_sslhaf:

$ sudo apxs2 -ci -I/usr/local/include/sslhaf/ -L/usr/local/lib/ -lsslhaf mod_sslhaf.c

/usr/share/apr-1.0/build/libtool --silent --mode=compile --tag=disable-static x86_64-linux-gnu-gcc -std=gnu99 -prefer-pic -pipe -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wformat-security -D_FORTIFY_SOURCE=2 -fno-strict-aliasing  -D_FORTIFY_SOURCE=2   -DLINUX -D_REENTRANT -D_GNU_SOURCE  -pthread  -I/usr/include/apache2  -I/usr/include/apr-1.0   -I/usr/include/apr-1.0 -I/usr/include -I/usr/local/include/sslhaf/  -c -o mod_sslhaf.lo mod_sslhaf.c && touch mod_sslhaf.slo
mod_sslhaf.c: In function 'mod_sslhaf_log':
mod_sslhaf.c:230:31: error: 'conn_rec' has no member named 'remote_ip'
         "mod_sslhaf [%s]: ", c->remote_ip);
                               ^

There's more, but the errors are all around remote_ip.

Enhance client handshake object parsing

Objects embedded in the client handshake include: cipher suites, compression methods
and TLS extensions

In addition to the string of ids currently being parsed out, extract more comprehensive
information:

  • cipher suites - embed full cipher description including nice name and algorithm key length. This information will be sourced from the suites.csv document included in the source tree. It will be processed into a source file: sslhaf_suites.c which contain lookup routines that return a suite description given an id number. The main lookup function will be exported in sslhaf.h as a useful utility function.
  • compression methods - store a printable string of comma separated compression method ids as well as an array of ids
  • extensions - store extension information as the existing list of printable ids, but in addition, provide a traversable list of objects with more detailed extension information. The object will have a standard header containing the extension name, the id and an enumeration key, and a union of subobjects. The real subobject stored in the union will be demarcated by the extension key in the header, which will either indicate a supported extension object type, or indicate a generic 'unsupported' type.

Record fragmentation not handled

TLS allows lower-level protocol records to be fragmented, but this case is not handled in the code. This happens only rarely, and then usually as a result of server misconfiguration. (For example, one recent case I observed was when the server was configured to send too many certificates.)

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.