From 136639603727d586294ad93cf2f266c3445c1136 Mon Sep 17 00:00:00 2001 From: Adrian Date: Wed, 14 Dec 2022 15:28:26 +0100 Subject: [PATCH] fix out of bounds bug, shoudl be able to handle body properly --- src/burp/BurpExtender.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/burp/BurpExtender.java b/src/burp/BurpExtender.java index 1e47b62..1f7caa6 100644 --- a/src/burp/BurpExtender.java +++ b/src/burp/BurpExtender.java @@ -187,10 +187,10 @@ public class BurpExtender implements IBurpExtender, IHttpListener, IProxyListene byte parameterType = (byte) (parameter.getType() + 2); // NOTE(zeno): I add 2 here, because the header starts 2 positions later because I added 2 option before that parameterType++; // increment with one to make room for header (0) - if (dataModel.getMasterDebug()) {callbacks.printOutput(". Parameter["+parameter.getName()+"]="+parameter.getValue()+" of Type="+enhancedParameter.Type.get(parameterType));} /*Debug enabled*/ + if (parameterType>8) + parameterType = 7; - if (parameterType>9) - parameterType = 9; + if (dataModel.getMasterDebug()) {callbacks.printOutput(". Parameter["+parameter.getName()+"]="+parameter.getValue()+" of Type="+enhancedParameter.Type.get(parameterType));} /*Debug enabled*/ if ( (id = dataModel.getByNameType(parameter.getName(), parameterType)) !=null ) { Boolean toProxy = dataModel.getToProxy(id); -- 2.45.2