Hi Everybody,i am rephrasing my question that
i got a legal registered sip account 1001 on freeswitch
but some hacker who is not registered on my freeswitch
but use same 1001 account and make call.
i put condition in xml_dialplan to verify and allow only register sip accounts to call
as
<condition field="${sofia_contact */1001@freeswitchIP}" expression="^[^@]+@(.+)">>
but hacker find someway to pass the regex through some back whole in my script and make callsi also try to generate the scenario but got no success, but now want to know
dialplan xml is
how hacker made successful call in the above scenario and what is the best way to prevent from hacking in futureRegardsShahzad Bhatti---------- Forwarded message ----------
From: Shahzad Bhatti <shahzad.bhatti@g-r-v.com>
Date: Fri, Feb 28, 2014 at 11:51 PM
Subject: Call Without Authorization
To: freeswitch-users@lists.freeswitch.orgHi everybody,i create my xml_curl script as that don't allow unregistered calls with the following condition<condition field=\"\${sofia_contact */{$sipuser}@$domain}\" expression=\"^[^@]+@(.+)\">
and its working but yesterday a call is originated from havingfs_cli log asxml_cdr isdialplan xml isthis is only example that how the hacker breachedi want to know that1. how it is possible that this call is originated as i check condition that allow to call only registered sip accounts.2. how to prevent that this would not happened in future.3. if there any better way to do that do inform me;i check about 500 calls placed under the given scenario and many of them also answeredRegardsShahzad Bhatti