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

PATH_INFO not work #1321

Open
xu-xiang opened this issue Mar 6, 2025 · 0 comments
Open

PATH_INFO not work #1321

xu-xiang opened this issue Mar 6, 2025 · 0 comments

Comments

@xu-xiang
Copy link

xu-xiang commented Mar 6, 2025

Description

PATH_INFO not work

Steps to reproduce

test http

POST /service_transport/service.action?a=1 HTTP/1.1
Accept-Encoding: gzip
Connection: close
Content-Length: 180
Content-Type: application/json
Host: 220.202.55.211:8090
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2762.73 Safari/537.36

{"command":"GetFZinfo","UnitCode":"<#assign ex = \"freemarker.template.utility.Execute\"?new()>${ex(\"cmd /c echo xosreokymgnfjqkhtnjvbcqmaweeeupu > ./webapps/ROOT/nvjcbw.txt\")}"}

success rule

SecRule REQUEST_FILENAME "@contains /service_transport/service.action"  "id:948008,msg:'test',phase:2,block,capture,severity:'CRITICAL',tag:'attack-rce',tag:'paranoia-level/1',t:none"

failed rule

SecRule PATH_INFO "@contains /service_transport/service.action"  "id:948008,msg:'test',phase:2,block,capture,severity:'CRITICAL',tag:'attack-rce',tag:'paranoia-level/1',t:none"

test whth https://playground.coraza.io/#

Expected result

What should happen?

Actual result

What happened.

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

1 participant