jazzer icon indicating copy to clipboard operation
jazzer copied to clipboard

Xpath sanitizer

Open mschessler opened this issue 3 years ago • 2 comments

Added XPath Sanitizer + simple test case

mschessler avatar Aug 15 '22 15:08 mschessler

@SyrasX Sorry for the long wait, I have been quite busy finishing up some larger refactorings and feature additions. I will have to brush up my knowledge of XPath and XML in general for a proper review. I hope to get to that by next week.

fmeum avatar Aug 30 '22 07:08 fmeum

@fmeum No worries take as much time as you need. Maybe some additional info:

The current approch will not detect an injection if quotation marks in input are sanitized but the programm allows the input to directly build a querry instead of using somethin like this "//input[@id='firstName']". I personnaly would rate it rather unlikely.

The original plan was to use the Xpath.compile() function to check for correct syntax in a similar way to the SQL Injection Sanitizer. I just fear that since the XPathExpressionException is thrown because of reasons not strictly related to syntax, that we would report all the normally catched and handled exceptions without them being an injection.

mschessler avatar Aug 31 '22 16:08 mschessler

You probably have to rebase on the latest main version and resolve the conflict to trigger a new pipeline run.

bertschneider avatar Feb 24 '23 13:02 bertschneider

You probably have to rebase on the latest main version and resolve the conflict to trigger a new pipeline run.

I don't think I can even trigger a pipeline run myself. Also getting to run the format.sh correctly last time took some time, so I just hope it's fine. If not please just run it yourself.

mschessler avatar Feb 24 '23 18:02 mschessler

@SyrasX Pipeline runs now :).

0xricksanchez avatar Feb 24 '23 19:02 0xricksanchez

There seem to be conflicts with the main branch, at least that's why GitHub prevents a rebase and merge. Could you squash all commits and rebase on main? That should resolve the conflicts.

bertschneider avatar Feb 27 '23 07:02 bertschneider

Done. Does it work now @bertschneider ?

mschessler avatar Feb 27 '23 11:02 mschessler

Merged. Thx again for the PR and your patience.

bertschneider avatar Feb 27 '23 12:02 bertschneider