-
Notifications
You must be signed in to change notification settings - Fork 426
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
CVE-2011-4320 #2170
CVE-2011-4320 #2170
Conversation
8200dc3
to
b04974c
Compare
6037.1 / Erlang 19.3 / small_tests / 3081a7b 6037.2 / Erlang 19.3 / internal_mnesia / 3081a7b 6037.3 / Erlang 19.3 / mysql_redis / 3081a7b 6037.5 / Erlang 19.3 / ldap_mnesia / 3081a7b 6037.6 / Erlang 19.3 / elasticsearch_and_cassandra_mnesia / 3081a7b 6037.4 / Erlang 19.3 / odbc_mssql_mnesia / 3081a7b 6037.8 / Erlang 20.0 / pgsql_mnesia / 3081a7b 6037.9 / Erlang 21.0 / riak_mnesia / 3081a7b mod_global_distrib_SUITE:mod_global_distrib:test_pm_with_ungraceful_reconnection_to_different_server{error,
{timeout_when_waiting_for_stanza,
[{escalus_client,wait_for_stanza,
[{client,<<"eve77.985148@localhost/res1">>,escalus_tcp,
<0.24636.1>,
[{event_manager,<0.24627.1>},
{server,<<"localhost">>},
{username,<<"eve77.985148">>},
{resource,<<"res1">>}],
[{event_client,
[{event_manager,<0.24627.1>},
{server,<<"localhost">>},
{username,<<"eve77.985148">>},
{resource,<<"res1">>}]},
{resource,<<"res1">>},
{username,<<"eve77.985148">>},
{server,<<"localhost">>},
{host,<<"localhost">>},
{port,5222},
{auth,{escalus_auth,auth_plain}},
{wspath,undefined},
{username,<<"eve77.985148">>},
{server,<<"localhost">>},
{password,<<"password">>},
{port,5222},
{stream_management,true},
{stream_id,<<"B36E2D4A2FE6FA61">>}]},
10000],
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
{line,138}]},
{mod_global_distrib_SUITE,
'-test_pm_with_ungraceful_reconnection_to_different_server/1-fun-0-',
4,
[{file,"mod_global_distrib_SUITE.erl"},{line,607}]},
{escalus_story,story,4,
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,72}]},
... |
b04974c
to
030145a
Compare
Codecov Report
@@ Coverage Diff @@
## master #2170 +/- ##
==========================================
- Coverage 78.66% 78.58% -0.08%
==========================================
Files 329 329
Lines 28421 28421
==========================================
- Hits 22357 22336 -21
- Misses 6064 6085 +21
Continue to review full report at Codecov.
|
030145a
to
0886079
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR looks good 👍
big_tests/tests/pubsub_s2s_SUITE.erl
Outdated
[{group, GN} || {GN, _, _} <- groups()]. | ||
|
||
groups() -> | ||
lists:flatmap( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can be simplified to:
[ {encode_group_name(BaseGroup, NodeTree), Opts, Cases} || {BaseGroup, Opts, Cases} <- base_groups(), NodeTree <- [<<"dag">>, <<"tree">>]]```
6038.1 / Erlang 19.3 / small_tests / 25fca22 6038.3 / Erlang 19.3 / mysql_redis / 25fca22 6038.2 / Erlang 19.3 / internal_mnesia / 25fca22 6038.6 / Erlang 19.3 / elasticsearch_and_cassandra_mnesia / 25fca22 6038.4 / Erlang 19.3 / odbc_mssql_mnesia / 25fca22 mod_global_distrib_SUITE:mod_global_distrib:test_pm_with_ungraceful_reconnection_to_different_server{error,
{timeout_when_waiting_for_stanza,
[{escalus_client,wait_for_stanza,
[{client,<<"eve12.895875@localhost/res1">>,escalus_tcp,
<0.20300.3>,
[{event_manager,<0.20291.3>},
{server,<<"localhost">>},
{username,<<"eve12.895875">>},
{resource,<<"res1">>}],
[{event_client,
[{event_manager,<0.20291.3>},
{server,<<"localhost">>},
{username,<<"eve12.895875">>},
{resource,<<"res1">>}]},
{resource,<<"res1">>},
{username,<<"eve12.895875">>},
{server,<<"localhost">>},
{host,<<"localhost">>},
{port,5222},
{auth,{escalus_auth,auth_plain}},
{wspath,undefined},
{username,<<"eve12.895875">>},
{server,<<"localhost">>},
{password,<<"password">>},
{port,5222},
{stream_management,true},
{stream_id,<<"278CDE6ED3401E31">>}]},
10000],
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
{line,138}]},
{mod_global_distrib_SUITE,
'-test_pm_with_ungraceful_reconnection_to_different_server/1-fun-0-',
4,
[{file,"mod_global_distrib_SUITE.erl"},{line,607}]},
{escalus_story,story,4,
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,72}]},
... mod_global_distrib_SUITE:mod_global_distrib:test_pm_with_ungraceful_reconnection_to_different_server{error,
{timeout_when_waiting_for_stanza,
[{escalus_client,wait_for_stanza,
[{client,<<"eve44.640792@localhost/res1">>,escalus_tcp,
<0.20714.3>,
[{event_manager,<0.20705.3>},
{server,<<"localhost">>},
{username,<<"eve44.640792">>},
{resource,<<"res1">>}],
[{event_client,
[{event_manager,<0.20705.3>},
{server,<<"localhost">>},
{username,<<"eve44.640792">>},
{resource,<<"res1">>}]},
{resource,<<"res1">>},
{username,<<"eve44.640792">>},
{server,<<"localhost">>},
{host,<<"localhost">>},
{port,5222},
{auth,{escalus_auth,auth_plain}},
{wspath,undefined},
{username,<<"eve44.640792">>},
{server,<<"localhost">>},
{password,<<"password">>},
{port,5222},
{stream_management,true},
{stream_id,<<"FF197D0BD003D94C">>}]},
10000],
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
{line,138}]},
{mod_global_distrib_SUITE,
'-test_pm_with_ungraceful_reconnection_to_different_server/1-fun-0-',
4,
[{file,"mod_global_distrib_SUITE.erl"},{line,607}]},
{escalus_story,story,4,
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,72}]},
... 6038.5 / Erlang 19.3 / ldap_mnesia / 25fca22 6038.8 / Erlang 20.0 / pgsql_mnesia / 25fca22 mod_global_distrib_SUITE:mod_global_distrib:test_pm_with_ungraceful_reconnection_to_different_server{error,
{timeout_when_waiting_for_stanza,
[{escalus_client,wait_for_stanza,
[{client,<<"eve90.229516@localhost/res1">>,escalus_tcp,
<0.21192.3>,
[{event_manager,<0.21183.3>},
{server,<<"localhost">>},
{username,<<"eve90.229516">>},
{resource,<<"res1">>}],
[{event_client,
[{event_manager,<0.21183.3>},
{server,<<"localhost">>},
{username,<<"eve90.229516">>},
{resource,<<"res1">>}]},
{resource,<<"res1">>},
{username,<<"eve90.229516">>},
{server,<<"localhost">>},
{host,<<"localhost">>},
{port,5222},
{auth,{escalus_auth,auth_plain}},
{wspath,undefined},
{username,<<"eve90.229516">>},
{server,<<"localhost">>},
{password,<<"password">>},
{port,5222},
{stream_management,true},
{stream_id,<<"5E310E35DEC69462">>}]},
10000],
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_client.erl"},
{line,138}]},
{mod_global_distrib_SUITE,
'-test_pm_with_ungraceful_reconnection_to_different_server/1-fun-0-',
4,
[{file,"mod_global_distrib_SUITE.erl"},{line,607}]},
{escalus_story,story,4,
[{file,
"/home/travis/build/esl/MongooseIM/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,72}]},
... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. I had only one concern regarding potential code duplication.
big_tests/tests/pubsub_s2s_SUITE.erl
Outdated
publish_without_node_attr_test | ||
]. | ||
|
||
encode_group_name(BaseName, NodeTree) -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this and the following function used in pubsub_SUITE
as well? If so I think it be worth move this to the pubsub_tools
module and use it from both SUITEs.
0886079
to
e3bb7ef
Compare
6041.1 / Erlang 19.3 / small_tests / 23e5cea 6041.2 / Erlang 19.3 / internal_mnesia / 23e5cea 6041.3 / Erlang 19.3 / mysql_redis / 23e5cea 6041.6 / Erlang 19.3 / elasticsearch_and_cassandra_mnesia / 23e5cea 6041.5 / Erlang 19.3 / ldap_mnesia / 23e5cea 6041.4 / Erlang 19.3 / odbc_mssql_mnesia / 23e5cea 6041.8 / Erlang 20.0 / pgsql_mnesia / 23e5cea 6041.9 / Erlang 21.0 / riak_mnesia / 23e5cea |
This PR addresses ejabberd CVE (https://www.cvedetails.com/cve/CVE-2011-4320/) about infinite loop causing DoS when a user from other domain publishes an item to not existent node (no
node
attribute).In both cases
remote-server-not-found
error should be returned