IQ 27: How to prevent SQL Injection?

Поделиться
HTML-код
  • Опубликовано: 2 авг 2024
  • This video explains how to prevent SQL Injection

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

  • @Lexyvil
    @Lexyvil Год назад +3

    I just started learning SQL for the sake of trying to prevent SQL injections in existing code, and this explaining the concept of what SQL injection is, and common ways to prevent it! Thank you! Now I only need to know what the steps of creating prepared statements entail.

  • @BlackCrusade1000
    @BlackCrusade1000 2 года назад +3

    Thank you so much, sir. I came here to understand parameterized data queries. I didn't understand this concept at all. Thank you so much for clearing this up for me!

  • @fatimamughal1817
    @fatimamughal1817 4 года назад +6

    Loved how you explained everything but am confused about the escape all user supplied input point. It would have been great if you would’ve given some more examples on that!

    • @richardpaulhall
      @richardpaulhall 3 года назад +1

      Escaping user input is the least effective way. Best practice would be to use one of the other two methods.
      Escaping user input is to sanitize the input so the SQL code does not see text with training SQL logic, but just a sting.

  • @ishaqparacha
    @ishaqparacha 5 лет назад +1

    nice information

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

    This video was super helpful. tHANK U

  • @thatcj4263
    @thatcj4263 6 лет назад

    i really liked the video but my website is vulnerable to havij/sqli dumper so how to prevent it from the tools like them?

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

    thank you for amazing video

  • @judithmalshini5428
    @judithmalshini5428 3 года назад

    is there a difference between mitigating and taking countermessures

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

    great video

  • @tusharharel2890
    @tusharharel2890 4 года назад

    how to solve if it gives sql injection , JDBCtemplate statement in fortify .

  • @ankitroy2844
    @ankitroy2844 3 года назад +3

    Ping me for the complete project(SQL Injection Detection and Prevention), Code, execution, PPT and Documentation
    Can be used for your college academic project.
    Project available(Charged)

    • @nomads1895
      @nomads1895 3 года назад

      How to contact?

    • @ankitroy2844
      @ankitroy2844 3 года назад

      @@nomads1895 contact: projectscomputerscience@@t

  • @Scarletraven87
    @Scarletraven87 4 года назад

    I'm skeptical because of this like to dislike ratio. It's worse than you think.

  • @DnKZone
    @DnKZone 3 года назад +3

    I am a noob coder but idk how I learned to prevent sql injection 😂

    • @DnKZone
      @DnKZone 3 года назад

      @Amee Eary No thanks 👍

    • @DnKZone
      @DnKZone 3 года назад

      @Dawson Dylan stfu bot, that's a illegal site

  • @AshuGupta1
    @AshuGupta1 5 лет назад

    What character was escaped in last example?

    • @Seyanhyriu
      @Seyanhyriu 4 года назад

      I'm not sure but i think you should parse/convert the entire input from the user to a string, in this case.

    • @bluezgoldz
      @bluezgoldz 3 года назад

      This comment might be late but incase you still didn't get the answer, the ' character is escaped. Can probably do this with a regex to escape '

  • @FarahNazifa
    @FarahNazifa 5 лет назад +2

    I didn't understand the last page ''Prevention".

    • @bluezgoldz
      @bluezgoldz 3 года назад

      Not sure if it's too late, but for the first 2 preventions revolves around the Key word parameterize. if you parameterize an input, that input is read as an entire string inside the db example:
      --You declare a sql variable
      declare @username varchar(max) = 'Select * from user'
      --Actual query
      select * from UserList where @username = 'adminGuy'
      In the above case you will be comparing with the condition of @username = 'adminGuy' A.K.A 'Select * from user' = 'adminGuy' which is false. Hence it won't return any result.
      As for the last one, basically escapes all ' characters. Maybe with a regex

  • @yuniyunhaf5767
    @yuniyunhaf5767 5 лет назад +1

    good hearted user, seriously ? haha