Giter Site home page Giter Site logo

Problem reading htaccess about htshells HOT 4 CLOSED

wireghoul avatar wireghoul commented on May 24, 2024
Problem reading htaccess

from htshells.

Comments (4)

wireghoul avatar wireghoul commented on May 24, 2024

Which of the htaccess attacks were you using? I'm guessing you received a 401 authentication challenge before making the change? Adding the require directive shouldn't cause any issues on most cases, but I'd like to reproduce it locally for further testing if I can.

Thanks and your welcome :)

from htshells.

thesur avatar thesur commented on May 24, 2024

Hello wireghoul,

It happends with any htaccess attack. What is happening is that in my default apache config there is this directive:

(Files ".ht*")
Require all denied
(/Files)

So, even if the .htaccess has 'allow from all' directive I would still get a 403 error. So, what I did to have a more standard readable htaccess is using the next directive:

(Files ~ "^.ht")
Order allow,deny
Allow from all
Require all granted
(/Files)

Let me know if you're not able to reproduce this behaviour locally.

Thanks!

from htshells.

wireghoul avatar wireghoul commented on May 24, 2024

Thanks! That's exactly the information I was after. This is a change in 2.4. I will test it against older configurations to ensure it doens't break anything and update the attacks accordingly.

from htshells.

wireghoul avatar wireghoul commented on May 24, 2024

Gradually working this into the codebase with an annotaion. Thanks for reporting it.

from htshells.

Related Issues (3)

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.