Giter Site home page Giter Site logo

Comments (2)

pedrib avatar pedrib commented on September 1, 2024

@Fans0n-Fan thanks for your comment.

In 32 bits Linux, especially on old kernels in non-x86 architectures, the entropy of the ASLR is very low. Typically there are only 12 bits of entropy:

The affected ARM devices have a non-executable stack (NX) and 32 bit ASLR. NX can be defeated with ROP, and the 32 bit ASLR is weak - there are only 3 bytes that change in the address calculations, which means there are only 4096 possible values. The attack has to be run several times until the correct base address is hit, but this can usually be achieved in less than 1000 attempts.

But actually on this target ASLR is on and it does work properly!

Here something weird is going on.. the daemon (sslvpn) spawns multiple threads, and one of the threads always has the stack at the same location. But the stack of the other threads, and all other libraries are, heap, etc, are all properly randomised ("properly" - bearing in mind the low entropy I mentioned above).

No idea why this is the case, I have never seen this behaviour before.

from poc.

pedrib avatar pedrib commented on September 1, 2024

We've just updated the advisory with a bit more knowledge about the bug, as we studied it a bit further. We still don't know why such light randomisation is used, but we know more or less what is happening. Please re-read that part! Closing this for now.

from poc.

Related Issues (8)

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.