Ad Widget

Collapse

cannot extract the value of "{formkey}" from response

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • skione13
    Junior Member
    • Mar 2020
    • 3

    #1

    cannot extract the value of "{formkey}" from response

    I am trying to extract the value from a hidden form field for CSRF, I have tested my regex and it works but I keep getting an error in Zabbix saying the value cannot be extracted. Here is the html <input name="form_key" type="hidden" value="mtiM3tYvzyOEgEzk" />
    and here is the line I've configured in zabbix: regex:name="form_key" content="[0-9a-zA-Z]{16}"
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    Does the following work?

    regex:name="form_key.*" value="([0-9a-zA-Z]{16})"

    Comment

    Working...