Skip to content

Commit

Permalink
Merge pull request #42 from BugBountyzip/bug-fix-on-Incorrect-content…
Browse files Browse the repository at this point in the history
…-length

Bug fix on IncorrectContentLength.bambda
  • Loading branch information
ps-porpoise authored Dec 13, 2023
2 parents c75807e + 9fa67f7 commit 4124d9a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Proxy/HTTP/IncorrectContentLength.bambda
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
* @author albinowax
**/

if (!requestResponse.hasResponse()) {
return false;
}

int realContentLength = requestResponse.response().body().length();
int declaredContentLength = Integer.parseInt(requestResponse.response().headerValue("Content-Length"));

return declaredContentLength != realContentLength;
return declaredContentLength != realContentLength;

1 comment on commit 4124d9a

@BugBountyzip
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

An exception was thrown while running your Bambda for item number 2

java.lang.NumberFormatException: Cannot parse null string
at java.base/java.lang.Integer.parseInt(Integer.java:627)
at java.base/java.lang.Integer.parseInt(Integer.java:781)
at burp.Bambda.matches(Bambda.java:53)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at burp.Zpo4.ZO(Unknown Source)
at burp.Zc9d.lambda$run$1(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1623)

An exception was thrown while running your Bambda for item number 8

java.lang.NumberFormatException: Cannot parse null string

Please sign in to comment.