Reduce False Positives for HTTP detection Rule (#578)

* Exclude xmlnx:xsi

* Fix typo in self-test

* Update Changelog.md
This commit is contained in:
Gabe Stocco 2023-08-07 16:00:46 -07:00 коммит произвёл GitHub
Родитель e3d6c3bd52
Коммит 7a4db567c1
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 18 добавлений и 1 удалений

Просмотреть файл

@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.0.17] - 2023-08-07
### Rules
Improve HTTP url detection rule to exclude more schema definitions.
## [1.0.16] - 2023-08-04
### Fixes
Fixes an issue with loading settings in the Visual Studio extension.

Просмотреть файл

@ -57,6 +57,18 @@
"negate_finding": true,
"search_in": "finding-region(-1, 0)"
},
{
"pattern" :
{
"pattern": "xmlns:xsi=",
"type": "substring",
"scopes": [
"code"
]
},
"negate_finding": true,
"search_in": "finding-region(-1, 0)"
},
{
"pattern" :
{
@ -123,7 +135,8 @@
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">",
"https://",
"this is \"https://foo.com\"",
"<SCRIPT SRC=\"//BLAH\"></SCRIPT>"
"<SCRIPT SRC=\"//BLAH\"></SCRIPT>",
"xmlns:xsi=\"http://www.w3.org/someschema/\""
]
}
]