Skip to content

[BUG] HTML Injection Module Not Working #2302

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks done
XDark187 opened this issue May 20, 2025 · 1 comment
Open
2 tasks done

[BUG] HTML Injection Module Not Working #2302

XDark187 opened this issue May 20, 2025 · 1 comment
Labels
bug Something isn't working next minor

Comments

@XDark187
Copy link

XDark187 commented May 20, 2025

What happened?

It seems that injecting html code using the web UI adds a double quotation marks to the injected html code which makes it useless, but injecting it from the docker compose using INJECT_HEAD env var works perfectly.

Example 1:
Image

Image

Example 2:

Image

Image

Also, when I try to inject <script></script> I get redirected to an invalid page.

Image

How to reproduce?

Using the web UI, go to the settings page of any service, then go to the HTML injection module, fill the INJECT_BODY or INJECT_HEAD with any simple html code.
Finally, visit the website to check if it it's working or not.

Configuration file(s) (yaml or .env)

Irrelevant, I've tried with a fresh install of bunkerweb and the issue still exists

Relevant log output

No errors or warnings

BunkerWeb version

1.6.1

What integration are you using?

Docker

Linux distribution (if applicable)

Debian Bookworm

Removed private data

  • I have removed all private data from the configuration file and the logs

Code of Conduct

  • I agree to follow this project's Code of Conduct
@XDark187 XDark187 added the bug Something isn't working label May 20, 2025
@TheophileDiot
Copy link
Member

Hi @XDark187, this is a known bug on the 1.6.1 that the settings are sanitized. Can you try again on the latest release candidate ? Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working next minor
Projects
None yet
Development

No branches or pull requests

2 participants