Исправлена уязвимость чужого чтения
This commit is contained in:
@@ -38,6 +38,14 @@ public class Executor7Read extends PacketExecutor<Packet7Read> {
|
|||||||
client.disconnect(Failures.HANDSHAKE_NOT_COMPLETED);
|
client.disconnect(Failures.HANDSHAKE_NOT_COMPLETED);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if(!eciAuthentificate.getPublicKey().equals(fromPublicKey)){
|
||||||
|
/**
|
||||||
|
* Клиент пытается прочитать сообщения от имени того, кем не является
|
||||||
|
*/
|
||||||
|
client.disconnect(Failures.DATA_MISSMATCH);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
packet.setPrivateKey("");
|
packet.setPrivateKey("");
|
||||||
|
|
||||||
if(toPublicKey.startsWith("#group:")){
|
if(toPublicKey.startsWith("#group:")){
|
||||||
|
|||||||
Reference in New Issue
Block a user