SasanLabs / owasp-zap-fileupload-addon

OWASP ZAP add-on for finding vulnerabilities in File Upload functionality.
Apache License 2.0
22 stars 6 forks source link

FileUpload addon fires 450 requests in insane mode #11

Open preetkaran20 opened 3 years ago

preetkaran20 commented 3 years ago

Is your feature request related to a problem? Please describe. As there are too many requests this Addon fires so we need a way to categorize so that users can choose a suitable category for their application and only test for that category.

Describe the solution you'd like One simple solution is having Attack vectors mentioned in the Options Panel and the user can choose the Attack vectors like HtaccessFileUpload or SimpleJSPFIleUpload (Names can be shown a little better) and only those attack vectors only execute.

E.g: image

Code references Options panel UI: https://github.com/SasanLabs/owasp-zap-fileupload-addon/blob/main/src/main/java/org/sasanlabs/fileupload/ui/FileUploadOptionsPanel.java

Attack vector: https://github.com/SasanLabs/owasp-zap-fileupload-addon/blob/main/src/main/java/org/sasanlabs/fileupload/attacks/FileUploadAttackExecutor.java#L47

Testing code changes build the addon by running

  1. ./gradlew spotlessApply
  2. ./gradlew build Then go to the ZAP -> File -> Local addon file -> Navigate to project -> build -> bin -> fileupload*.zap and done.