#2 Most packets named query can return more than one result

クローズ
8 年 前carlos.garcia によって開かれました · 1 コメント
Carlos Garcia8 年 前 にコメントしました

The named query that returns the IP address with the most packets might return more than one result if different IPs are tied.

PortscanAttack expects only one IP when using this named query and fails if a list of addresses is returned instead.

The named query that returns the IP address with the most packets might return more than one result if different IPs are tied. PortscanAttack expects only one IP when using this named query and fails if a list of addresses is returned instead.
Carlos Garcia この課題がコミット 8 年 前 から参照されました
Carlos Garcia この課題がコミット 8 年 前 から参照されました
Patrick Jattke8 年 前 にコメントしました

Do you have any idea how we can handle that? My idea was to always require providing an extractor if a single element is expected but it cannot be guaranteed that the result is an single element or a list. Because if the query does not return a list of values, the extractor is not applied, otherwise it reduces the list to one element such that the attack can work with it. But requiring an extractor is not enforced yet, it is no error message printed if the queries result is a list and the parameter becomes therefore invalid.

To be noted, sometimes returning a list of values is desired. For example, as source IP addresses for an DDoS attack.

Do you have any idea how we can handle that? My idea was to always require providing an extractor if a single element is expected but it cannot be guaranteed that the result is an single element or a list. Because if the query does not return a list of values, the extractor is not applied, otherwise it reduces the list to one element such that the attack can work with it. But requiring an extractor is not enforced yet, it is no error message printed if the queries result is a list and the parameter becomes therefore invalid. To be noted, sometimes returning a list of values is desired. For example, as source IP addresses for an DDoS attack.
carlos.garcia 6 年 前 に閉じられました
Jens Keim この課題がコミット 6 年 前 から参照されました
会話に参加するには サインイン してください。
ラベルなし
Bug
マイルストーンなし
担当者なし
2 参加者
読み込み中…
キャンセル
保存
まだコンテンツがありません