Web Shell via Denylist Bypass!

Поделиться
HTML-код
  • Опубликовано: 20 окт 2024

Комментарии • 36

  • @Karmik_bhavya
    @Karmik_bhavya Месяц назад +1

    but when i tried added like .php5 it allowed me to upload the file but i wasn't able to execute the commands , i even tried going back a few directories to execute them but didn't work

  • @nicolaspanu7448
    @nicolaspanu7448 10 месяцев назад

    Excellent video with a very clear explanation. Thank you very much for sharing this!

    • @intigriti
      @intigriti  10 месяцев назад

      Glad it was helpful! 💜

  • @georgegreen9145
    @georgegreen9145 5 месяцев назад

    Quick question. How did you know to map a random file extension to application/x-httpd-php? I tried mapping .php6 and .phtml to application/x-httpd-php, but I got an internal server error, but after googling for a while, I found out you can map a random extension and that's how I solved the lab.

    • @intigriti
      @intigriti  5 месяцев назад +2

      Heyyy, I didn't solve this challenge myself but I would guess that the .php6 and .phtml are already mapped extensions, so we would need a random one.. Maybe .php69 would work 🤔

    • @georgegreen9145
      @georgegreen9145 5 месяцев назад

      @@intigriti I guess that means it's not possible to overwrite a previously defined extension 🤔. I guess I'm mad at myself for taking ages to think of this other approach 😅

  • @落珰
    @落珰 Год назад +1

    你好厉害呀,支持你

  • @0xgodson119
    @0xgodson119 2 года назад +1

    Hmm. I have a question. We uploaded a .htaccess file. which is uploaded to /avatars/.htaccess . now, basically the server conf. are stored in the root dir of the server. we uploaded the .htaccess to /avatars dir. so, if we uploads a .htaccess to a dir, then the .htaccess conf. file with work only inside the dir right? it will not work as universal! am i right?

    • @frencikurti
      @frencikurti 2 года назад +1

      Thats exactly what came up to my mind! I also think this trick might work IF AND ONLY IF the files are uploaded on root directory (or where the config files are exactly located). Not to mention that by doing such thing, the webapp will get messed up as you will be overwriting to the existing config files.

    • @intigriti
      @intigriti  2 года назад +10

      .htaccess files are not overwriting the overall server config. They are just an addition on a per-directory basis. So, in our case we are just adding an "AddType" config for the folder where we are allowed to upload files.
      It's not universal, no! Hope this clears things up a bit :)

    • @0xgodson119
      @0xgodson119 2 года назад +2

      @@intigriti Got it! , files only under /avatars/* and obey the .htacces rules. bcoz, we uploaded. its the nature of apache server!

    • @coyotatorolla
      @coyotatorolla Месяц назад

      It takes precedence over the global config only for the specific directory

  • @mahdizd2112
    @mahdizd2112 11 месяцев назад

    Thanks for you video.. am working in real word website. I had the ability to upload! But didn't know the directory of the uploaded file. Is there anyway to know what is the directory of the uploaded file?

    • @intigriti
      @intigriti  11 месяцев назад +1

      Thank you! Can you view your uploaded file? Can you download it? Or maybe copy/share a link to it? The path (and filename) might reveal itself when you explore the functionality like this. You could also try brute-forcing directories/files to see if you can locate it. Bare in mind you need to stick within the legal/ethical requirements of any bug bounty program, e.g. if you are brute-forcing, stick within the agreed limits.

    • @mahdizd2112
      @mahdizd2112 11 месяцев назад

      Do you have discord?

    • @intigriti
      @intigriti  11 месяцев назад

      Yessss! go.intigriti.com/discord

  • @bhaveshtank1588
    @bhaveshtank1588 Год назад

    Why wasn't the .htaccess file allowed to be executed by reloading the my account page and the shell file was immediately uploaded

    • @intigriti
      @intigriti  Год назад

      The .htaccess file is not getting executed. It's just a configuration file instruction Apache on how to handle files within a specific folder.

  • @acronproject
    @acronproject Год назад

    Thanks, Mr.

  • @steiner254
    @steiner254 Год назад

    Awesome! Learnt something new here today

    • @intigriti
      @intigriti  Год назад

      Glad to hear it! If you learn sth new every day, you will be an expert soon ❤️

  • @radityawaliulu
    @radityawaliulu 10 месяцев назад

    inspiring me. But I get 303.
    How to solve this issue

    • @intigriti
      @intigriti  9 месяцев назад

      Did you solve the lab? Double check the official solution on portswigger.net if the steps in this video don't work for you

  • @flag_hunter
    @flag_hunter Год назад

    How do we modify web.config on IIS servers?

    • @intigriti
      @intigriti  Год назад +2

      If you don't own the server, I don't think that's possible 😅

  • @user-uf2qc1dc9p
    @user-uf2qc1dc9p 2 года назад

    how to intercept and change request without burp?

    • @intigriti
      @intigriti  2 года назад

      You can do it in Firefox in the browser or use another tool such as Zap

  • @落珰
    @落珰 Год назад +2

    👀

  • @dedsece.i.68
    @dedsece.i.68 7 месяцев назад

    thanks 🙏