Top "Code-injection" questions

Code injection is the general term for the result of a missing neutralization or improper neutralization of special elements of externally-influenced input, which could modify the syntax or behavior of the intended code.

Javascript script element set inner text

We need to add a javascript element inside an iframe (its inside the same web/domain so no security problems …

javascript html iframe code-injection
doctrine2 dql, use setParameter with % wildcard when doing a like comparison

I want to use the parameter place holder - e.g. ?1 - with the % wild cards. that is, something like: "…

doctrine-orm wildcard dql sql-like code-injection
Angularjs custom filter and dependency injection

I'm new to AngularJS and i see this syntax a lot: function someFunc(){ return function(input){ return 'hello' + input; } } The …

javascript angularjs code-injection
Best way to avoid code injection in PHP

My website was recently attacked by, what seemed to me as, an innocent code: <?php if ( isset( $ _GET['page'] ) ) { …

php security code-injection
Is code injection possible in Java?

nowadays you can read much about code injection, exploits, buffer-, stack- and heap-overflows etc. leading to inject and run code. …

java code-injection
Exploiting JavaScript's eval() method

Many developers believe that JavaScript's eval() method should be avoided. This idea makes sense from a design perspective. It is …

javascript security eval client-side code-injection
Force x86 CLR on an 'Any CPU' .NET assembly

In .NET, the 'Platform Target: Any CPU' compiler option allows a .NET assembly to run as 64 bit on a x64 …

c# 64-bit clr code-injection
security flaw - veracode report - crlf injection

I got the veracode report for my javaEE app. It had a flaw at any logging (using log4j), so …

java security jakarta-ee code-injection
How can I print stack trace for caught exceptions in C++ & code injection in C++

I want to have stack trace not for my exceptions only but also for any descendants of std::exception As …

c++ gcc exception-handling c++11 code-injection
Mockito injection not working for constructor AND setter mocks together

I have a class that has members injected through constructors, and OTHERS through setters. I can't seem to get Mockito …

spring constructor code-injection mockito setter