1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-02 06:45:59 +01:00
Smack/extensions/src
Lars Noschinski 6c7296a37b Add and use IQReplyFilter (SMACK-533)
In the absence of checks on the from address, it is possible for other
clients to fake an answer to an IQ request.

This commit adds an IQReplyFilter, which drops all packets which are not
a valid reply to an IQ request. In particular, it checks for packet id,
from address and packet type.

Most(?) places waiting for a reply to an IQ request are converted to use
the IQReplyFilter.

For a discussion of the issues, see the thread "Spoofing of iq ids and
misbehaving servers" from 2014-01 on the jdev@jabber.org mailing list
and following discussion in February and March.
2014-03-07 16:13:07 +01:00
..
integration-test/java/org/jivesoftware/smackx Activate the jingle subproject and move integration tests 2014-02-19 10:38:30 +01:00
main Add and use IQReplyFilter (SMACK-533) 2014-03-07 16:13:07 +01:00
test/java/org/jivesoftware Add and use IQReplyFilter (SMACK-533) 2014-03-07 16:13:07 +01:00