Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decrypt-Encrypt-Decrypt on outgoing message not working #34

Closed
tarun14110 opened this issue Sep 24, 2018 · 12 comments
Closed

Decrypt-Encrypt-Decrypt on outgoing message not working #34

tarun14110 opened this issue Sep 24, 2018 · 12 comments

Comments

@tarun14110
Copy link

tarun14110 commented Sep 24, 2018

I decrypted my outgoing message. And encrypted it without editing. On trying to decrypt it again, I get error.
And I am getting different encrypted message after re-encrypting the same message.

Original outgoing message
screenshot from 2018-09-24 08-02-41

Decrypted outgoing message
screenshot from 2018-09-24 07-46-43

Encrypted outgoing message (without any changes)
screenshot from 2018-09-24 07-46-48

Trying to decrypt it
screenshot from 2018-09-24 07-46-52

@thiru112
Copy link

@tarun14110 I also had same issue and posted that if you find solution ,let me know

@tarun14110
Copy link
Author

tarun14110 commented Sep 25, 2018

@thiru112 So, were you able to impersonate outgoing messages as other user (attack 2 as explained on blog)?

@thiru112
Copy link

@tarun14110 I wasn't able to change message an put into the 'a' parameter in the browser

@tarun14110
Copy link
Author

You can do that by using this code a = Uint8Array.from([new encrypted array]).buffer at console during breakpoint at and then continue .
But, its not working. I guess there is some issue with encryption for outgoing messages. The encryption method should encrypt the decrypted outgoing message to same message as before decryting. But it's not doing that for now.

@thiru112
Copy link

@tarun14110 I try and reach you asap

@ertza
Copy link

ertza commented Oct 5, 2018

Hi all, I'm having the same issue except that I'm trying for incoming message. When I decrypt the message and then re-encrypt it (even without making any changes in the message) - this newly encrypted message cannot be decrypted so ofcourse when I forward it to whatsapp web, it is not able to decrypt it and show it. I hope someone can help fix it soon.

@GinNoel
Copy link

GinNoel commented Dec 5, 2018

You can do that by using this code a = Uint8Array.from([new encrypted array]).buffer at console during breakpoint at and then continue .
But, its not working. I guess there is some issue with encryption for outgoing messages. The encryption method should encrypt the decrypted outgoing message to same message as before decryting. But it's not doing that for now.

@thiru112 did you manage to get this work. I'm stuck on how to chage it in the browser.

Hi,

This is regarding Attack 2.

I manage to decrypt outgoing message.
Change the message, change true to False.
Encryp it back successfully.

I'm stuck on putting the encrypted data back to the console. I.e. im stuck on no 4 (please see attached image). How can I do that?

Thank you

ss1

@GinNoel
Copy link

GinNoel commented Dec 10, 2018

You can do that by using this code a = Uint8Array.from([new encrypted array]).buffer at console during breakpoint at and then continue .
But, its not working. I guess there is some issue with encryption for outgoing messages. The encryption method should encrypt the decrypted outgoing message to same message as before decryting. But it's not doing that for now.

Hi @tarun14110 did u manage to get the a = Uint8Array.from([new encrypted array]).buffer work?

@Orinion
Copy link

Orinion commented Feb 26, 2019

@GinNoel sorry for the late reply but i managed to do it.
first create a global variable in the console.
temp = new Uint8Array([248,..., 2, 1]).buffer
then doubleclick the a variable in the local scope and insert the name of the global variable.
override

Also note that the encrypted message is not correct (for me it inserts a 11, however after removing it, it works)

@ZRginger
Copy link

Hello, can anyone fix the problem? Letting DE-EN-DE on outgoing message works well.

@GinNoel
Copy link

GinNoel commented May 15, 2019

@GinNoel sorry for the late reply but i managed to do it.
first create a global variable in the console.
temp = new Uint8Array([248,..., 2, 1]).buffer
then doubleclick the a variable in the local scope and insert the name of the global variable.
override

Also note that the encrypted message is not correct (for me it inserts a 11, however after removing it, it works)

Hi @Orinion ,

My apologies for the very late reply. Thank you for the steps.

You lost me here "(for me it inserts a 11, however after removing it, it works)". Can you please explain further?

Thank you.

@Orinion
Copy link

Orinion commented May 15, 2019

Hello @GinNoel, taken frome the screenshots of the op:
grafik

he didn't change annything, however the 11 gets added after encrypting. Simply remove it before you paste it in the browser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants