Podatkovne baze so del skorajda vsake aplikacije in so na žalost tudi tarča različnih napadov. V diplomskem delu podrobno spoznamo tipe podatkovnih baz in opišemo določene razlike med njimi, opišemo tudi različne nevarnosti, ki prežijo na podatkovne baze, v praktičnem delu pa podrobneje predstavimo napade SQL in NoSQL-vrinjenja ter predstavimo zaščito pred temi napadi.Databases are part of almost every application and are unfortunately also the target of various attacks. In this work we get to know the types of databases in detail, and we describe certain differences between them. Furthermore, we describe various dangers that loom over the databases. As part of the practical work, we analyze SQL and NoSQL-injection attacks in detail and pr...