Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9b90d86

Browse files
victorhoraFelipe Zimmerle
authored and
Felipe Zimmerle
committed
Add capture action to @detectXSS operator
1 parent185ec6f commit9b90d86

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎apache2/re_operators.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2158,12 +2158,14 @@ static int msre_op_detectSQLi_execute(modsec_rec *msr, msre_rule *rule, msre_var
21582158
*/
21592159
staticintmsre_op_detectXSS_execute(modsec_rec*msr,msre_rule*rule,msre_var*var,
21602160
char**error_msg) {
2161-
2161+
intcapture;
21622162
intis_xss;
21632163

21642164
is_xss=libinjection_xss(var->value,var->value_len);
2165+
capture=apr_table_get(rule->actionset->actions,"capture") ?1 :0;
21652166

21662167
if (is_xss) {
2168+
set_match_to_tx(msr,capture,var->value,0);
21672169
*error_msg=apr_psprintf(msr->mp,"detected XSS using libinjection.");
21682170

21692171
if (msr->txcfg->debuglog_level >=9) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp