[Kamailio-Devel] [ openser-Bugs-2740437 ] PUBLISH authentication is wrong
SourceForge.net
noreply at sourceforge.net
Thu Apr 16 15:50:29 CEST 2009
Bugs item #2740437, was opened at 2009-04-07 13:28
Message generated for change (Comment added) made by ibc_sf
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=2740437&group_id=139143
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: ver devel
Status: Open
Resolution: None
Priority: 7
Private: No
Submitted By: Klaus Darilion (klaus_darilion)
Assigned to: Nobody/Anonymous (nobody)
Summary: PUBLISH authentication is wrong
Initial Comment:
Hi!
For PUBLISH requests, Authentication user should be checked against RURI. Thus, realm should be derived from RURI too.
Can someone please review the patch - I am not sure if the usage of &(_m->parsed_uri) is correct in this situation.
thanks
----------------------------------------------------------------------
>Comment By: Iñaki Baz Castillo (ibc_sf)
Date: 2009-04-16 15:50
Message:
I copy part of my mail in devel maillist about this report:
I don't agree on the patch behaviour. For PUBLISH the credentials username
should be matched against the From username. For example, a presence user
agent (pua at domain) could publish state for bob at domain.org, but we still
need pua to authenticate against us. In my opinion, the logical behaviour
would be:
is_method("PUBLISH") {
if ! check_from() {
sl_send_reply("403", "You are not who you say");
exit();
}
if au != fu {
if fu == "sip:pua at domain" {
xlog("L_INFO", "Thirdy party PUBLISH allowed for PUA \n");
}
else {
sl_send_reply("403", "Thirdy Party PUBLISH not allowed for you");
exit();
}
}
}
So I consider the proposed patch as wrong since it avoids authenticated
thirdy party publish.
----------------------------------------------------------------------
Comment By: Iñaki Baz Castillo (ibc_sf)
Date: 2009-04-14 17:23
Message:
I have no checked the patch yet, but I confirm that for PUBLISH, the RURI
should be checked instead of the From or To.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=2740437&group_id=139143
More information about the Devel
mailing list