Skip to content
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

Action 'exec' does not work #1048

Open
gassonet9 opened this issue Apr 24, 2024 · 0 comments
Open

Action 'exec' does not work #1048

gassonet9 opened this issue Apr 24, 2024 · 0 comments
Assignees

Comments

@gassonet9
Copy link

gassonet9 commented Apr 24, 2024

Description

Hello, good morning everyone, I have installed coraza+haproxy, and I am having trouble executing a script in a rule, I edit a file adding the default rule that is in the documentation with the 'exec' parameter but when I restart the service, this one falls. I thought it could be a problem with the user running coraza, who does not have permissions, but this is more than proven. It would be of great help to be able to implement this measure

I get the rule of the documention of coraza with the parameter exec, but when i restart de service, this don't up.
Rules that i implement: {

Run external program on rule match

SecRule REQUEST_URI "^/cgi-bin/script.pl" "phase:2,id:112,t:none,t:lowercase,t:normalizePath,block,\ exec:/etc/coraza-spoa/script/test.sh"

Run Lua script on rule match

SecRule ARGS:p attack "phase:2,id:113,block,exec:/etc/coraza-spoa/script/exec.lua"
}

Expected result

The expected result is that the service will restart and detect when you make a request via url for the rule to be activated

Actual result

Since I took the rule from the official cuirass document, I thought it would work but the service crashes when restarting it.

@fzipi fzipi self-assigned this May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants