Skip to main content

Questions tagged [code-injection]

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.

0 votes
1 answer
47 views

Debugging assembly to call IUnknown::Release - is shadow space right?

I am getting a bug where sometimes this code works sometimes it does not: 48 8B 41 08 ; MOV RAX, [RCX + 0x08] gets the refcount 48 FF C8 ; DEC RAX ; decrement ...
Greedo's user avatar
  • 5,355
-1 votes
0 answers
32 views

Host Header Injection Prevention does not work

I am using a php with apache. During vulnerability scan , host header injection was found. To fix this host header injection vulnerability i have implemented this code in my php application $...
ujjawal's user avatar
  • 93
1 vote
1 answer
89 views

JS: inject into BoundFunctionObject for bookmarklet script

Suppose I am writing a bookmarklet script to modify a webpage. Most websites (using webpack, etc) follow a structure something like this: <html> <script type="text/javascript"&...
Kaia's user avatar
  • 908
0 votes
0 answers
14 views

How can Autofac implement attribute-based property injection?

To implement attribute-based dependency injection in a C# console application using Autofac, and to specify that this attribute should inject an object with the key "xxx", how should I do it?...
user25631590's user avatar
0 votes
1 answer
32 views

External module bean injection in quarkus

i want to inject bean from an external module(maven project) in a quarkus application but i fetched this jakarta.enterprise.inject.UnsatisfiedResolutionException: how to get rid of this I scan the ...
Md. Milton's user avatar
0 votes
0 answers
60 views

Chrome extension service worker inject script to new about:blank tab

I am writing an extension to create a new tab then run some script. However, the error message "Error: Cannot access "about:blank" at origin "null". Extension must have ...
Jono's user avatar
  • 13
0 votes
0 answers
19 views

Threat is not executing

#include <Windows.h> #include <stdio.h> #include <tlhelp32.h> #include <tchar.h> int main(int argc, char **argv){ unsigned char shellcode[] = "\xfc\x48\x81\...
Iván Soler's user avatar
1 vote
2 answers
65 views

Dependency Injection with parameters

I have a WPF application. In the main window on the left is a listbox with several entries, and on the right is a ContentControl into which, when selecting one of the entries, the UserControl along ...
The Witcher's user avatar
0 votes
1 answer
115 views

Prevent malicious execution in Cron

I use cPanel and apache. I see this process in my server: opt/cpanel/ea-php74/root/usr/bin/php -d disable_functions= /tmp/codeItems3 root 17549 0.0 0.0 27180 972 ? Ss Apr16 0:00 ...
behnam bahadori's user avatar
0 votes
0 answers
21 views

Code injection not working outside of <head> if loaded in <head> [duplicate]

All of my injected scripts are loaded in the head tag. This works <head> (function() { const target = document.getElementsByTagName('head')[0]; var myScript = ...
Sandro Antonucci's user avatar
0 votes
1 answer
142 views

How can I disable JVM bytecode verification at runtime?

I do know the verification can be disabled by specifying argument -Xverify:none, but how can I do that without this starting argument so that JVM won't stop me from using redefineClasses to inject ...
Yqloss's user avatar
  • 3
0 votes
0 answers
33 views

Component inheritance and sharing of elements in Angular with dynamic template

I want to design an Angular application that implements inheritance and sharing of elements between components. The parent component should have the common UI elements, and the child components should ...
Mark U's user avatar
  • 545
0 votes
2 answers
99 views

VSCode Extension - Grammar Injection Into Multiple Languages

I'd like my extension to apply to both HTMl and Markdown. I understand I can use "injectTo": [ "text.html.derivative" "text.html.markdown" ], But that doesn't ...
zacoons's user avatar
  • 125
2 votes
1 answer
3k views

Toastr implementation in Angular17 at standalone components

I've been trying to add "toastr" to my Angular17 project but injecting it into my components does not work. I added it using AngularCLI. I'm getting the next error: ERROR Error [...
JoshQ's user avatar
  • 63
-2 votes
1 answer
33 views

Inject own Logic into existing Quakus Extension

I want to add my Logic into a class (VertexTracesDelegator) of the Open Telemetry Quarkus Extension to get a Callback Method that executes some code. Because I want to intercept the start and end of ...
Paul's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
164