Repository navigation
Closed
Description
__ _
____ __ _______/ /__ (_)
/ __ \/ / / / ___/ / _ \/ /
/ / / / /_/ / /__/ / __/ /
/_/ /_/\__,_/\___/_/\___/_/ v3.7.1
projectdiscovery.io
panic: interface conversion: interface {} is int, not float64 [recovered, repanicked]
goroutine 2515 [running]:
gopkg.in/yaml%2ev2.handleErr(0x34ee31e99c20)
gopkg.in/[email protected]/yaml.go:249 +0x65
panic({0x344ace0?, 0x34ee2eb00ed0?})
runtime/panic.go:860 +0x13a
gopkg.in/yaml%2ev2.handleErr(0x34ee31e99828)
gopkg.in/[email protected]/yaml.go:249 +0x65
panic({0x344ace0?, 0x34ee2eb00ed0?})
runtime/panic.go:860 +0x13a
github.com/projectdiscovery/dsl.init.0.func56({0x34ee2ef7ccd0?, 0x9?, 0x10?})
github.com/projectdiscovery/[email protected]/dsl.go:875 +0xf9
github.com/projectdiscovery/dsl.dslFunction.Exec({0x0, {0x3ac3d54, 0x9}, 0x0, {0x34ee2d983a20, 0x1, 0x1}, 0x474c308}, {0x34ee2ef7ccd0, 0x1, ...})
github.com/projectdiscovery/[email protected]/func.go:57 +0x2b6
github.com/Knetic/govaluate.planFunction.makeFunctionStage.func1({0x34ee2efa9360?, 0x327d680?}, {0x327d680, 0x49009a8}, {0x3ba191d?, 0x200ee31e98b01?})
github.com/Knetic/[email protected]+incompatible/evaluationStage.go:245 +0xac
github.com/Knetic/govaluate.EvaluableExpression.evaluateStage({{0x3bb4d9c, 0x22}, 0x1, {0x34ee2cf85b00, 0x9, 0x10}, 0x34ee2efa93b0, {0x34ee2ef807c2, 0x1a}}, 0x34ee2efa93b0, ...)
github.com/Knetic/[email protected]+incompatible/EvaluableExpression.go:232 +0x5ad
github.com/Knetic/govaluate.EvaluableExpression.Eval({{0x3bb4d9c, 0x22}, 0x1, {0x34ee2cf85b00, 0x9, 0x10}, 0x34ee2efa93b0, {0x34ee2ef807c2, 0x1a}}, {0x4778aa0, ...})
github.com/Knetic/[email protected]+incompatible/EvaluableExpression.go:163 +0x125
github.com/Knetic/govaluate.EvaluableExpression.Evaluate({{0x3bb4d9c, 0x22}, 0x1, {0x34ee2cf85b00, 0x9, 0x10}, 0x34ee2efa93b0, {0x34ee2ef807c2, 0x1a}}, 0x34ee2eb00c90)
github.com/Knetic/[email protected]+incompatible/EvaluableExpression.go:137 +0x94
github.com/projectdiscovery/nuclei/v3/pkg/protocols/common/expressions.evaluate({0x34ee2ef807c0, 0x1e}, 0x34ee2eb00c90)
github.com/projectdiscovery/nuclei/v3/pkg/protocols/common/expressions/expressions.go:66 +0x1e9
github.com/projectdiscovery/nuclei/v3/pkg/protocols/common/expressions.Evaluate(...)
github.com/projectdiscovery/nuclei/v3/pkg/protocols/common/expressions/expressions.go:31
github.com/projectdiscovery/nuclei/v3/pkg/protocols/common/variables.evaluateVariableValueWithMap({0x34ee2ef807c0, 0x1e}, 0x34ee2eb06e90?)
github.com/projectdiscovery/nuclei/v3/pkg/protocols/common/variables/variables.go:147 +0x1e
github.com/projectdiscovery/nuclei/v3/pkg/protocols/common/variables.(*Variable).Evaluate.func1(...)
github.com/projectdiscovery/nuclei/v3/pkg/protocols/common/variables/variables.go:87
github.com/projectdiscovery/nuclei/v3/pkg/utils.(*InsertionOrderedStringMap).ForEach(...)
github.com/projectdiscovery/nuclei/v3/pkg/utils/insertion_ordered_map.go:107
github.com/projectdiscovery/nuclei/v3/pkg/protocols/common/variables.(*Variable).Evaluate(0x34ee2d4b4780, 0x34ee31e99220)
github.com/projectdiscovery/nuclei/v3/pkg/protocols/common/variables/variables.go:76 +0x35d
github.com/projectdiscovery/nuclei/v3/pkg/protocols/common/variables.(*Variable).UnmarshalYAML(0x34ee2d4b4780, 0x70381bc397a0?)
github.com/projectdiscovery/nuclei/v3/pkg/protocols/common/variables/variables.go:49 +0x2c5
gopkg.in/yaml%2ev2.(*decoder).callUnmarshaler(0x34ee2ef7a4e0, 0x34ee2efa33b0, {0x70381bc397a0, 0x34ee2d4b4780})
gopkg.in/[email protected]/decode.go:270 +0x94
gopkg.in/yaml%2ev2.(*decoder).prepare(0x34ee2ef7a4e0, 0x34ee2efa33b0, {0x36d9c80?, 0x34ee2d4b4780?, 0x34ee2eb3fac0?})
gopkg.in/[email protected]/decode.go:313 +0x256
gopkg.in/yaml%2ev2.(*decoder).unmarshal(0x34ee2ef7a4e0, 0x34ee2efa33b0, {0x36d9c80?, 0x34ee2d4b4780?, 0x0?})
gopkg.in/[email protected]/decode.go:364 +0x17e
gopkg.in/yaml%2ev2.(*decoder).mappingStruct(0x34ee2ef7a4e0, 0x34ee2efa2070, {0x39eac80?, 0x34ee2d4b4588?, 0x34ee2ef9f6d8?})
gopkg.in/[email protected]/decode.go:767 +0xe2b
gopkg.in/yaml%2ev2.(*decoder).mapping(0x34ee2ef7a4e0?, 0x34ee2efa2070?, {0x39eac80?, 0x34ee2d4b4588?, 0x34ee2d542008?})
gopkg.in/[email protected]/decode.go:626 +0x465
gopkg.in/yaml%2ev2.(*decoder).unmarshal(0x34ee2ef7a4e0, 0x34ee2efa2070, {0x319f120?, 0x34ee2d4b4588?, 0x2c0?})
gopkg.in/[email protected]/decode.go:372 +0x1e5
gopkg.in/yaml%2ev2.(*decoder).callUnmarshaler.func1({0x319f120?, 0x34ee2d4b4588?})
gopkg.in/[email protected]/decode.go:272 +0xe5
github.com/projectdiscovery/nuclei/v3/pkg/templates.(*Template).UnmarshalYAML(0x34ee2d4b42c8, 0x34ee2eb3f8e0)
github.com/projectdiscovery/nuclei/v3/pkg/templates/templates.go:339 +0x58
gopkg.in/yaml%2ev2.(*decoder).callUnmarshaler(0x34ee2ef7a4e0, 0x34ee2efa2070, {0x70381bc396a0, 0x34ee2d4b42c8})
gopkg.in/[email protected]/decode.go:270 +0x94
gopkg.in/yaml%2ev2.(*decoder).prepare(0x34ee2ef7a4e0, 0x34ee2efa2070, {0x39ea960?, 0x34ee2d4b42c8?, 0xdc5f86?})
gopkg.in/[email protected]/decode.go:313 +0x256
gopkg.in/yaml%2ev2.(*decoder).unmarshal(0x34ee2ef7a4e0, 0x34ee2efa2070, {0x39ea960?, 0x34ee2d4b42c8?, 0x16?})
gopkg.in/[email protected]/decode.go:364 +0x17e
gopkg.in/yaml%2ev2.(*decoder).document(...)
gopkg.in/[email protected]/decode.go:384
gopkg.in/yaml%2ev2.(*decoder).unmarshal(0x34ee2ef7a4e0, 0x34ee2efa2000, {0x39ea960?, 0x34ee2d4b42c8?, 0x10034ee2d760000?})
gopkg.in/[email protected]/decode.go:360 +0x15d
gopkg.in/yaml%2ev2.unmarshal({0x34ee2d762400, 0xb72, 0xc00}, {0x39d23e0, 0x34ee2d4b42c8}, 0x1)
gopkg.in/[email protected]/yaml.go:148 +0x37c
gopkg.in/yaml%2ev2.UnmarshalStrict(...)
gopkg.in/[email protected]/yaml.go:89
github.com/projectdiscovery/nuclei/v3/pkg/templates.(*Parser).ParseTemplate(0x34ee2d4d3600, {0x34ee2ef841e0, 0x24}, {0x47a05b0, 0x34ee2d4d3620})
github.com/projectdiscovery/nuclei/v3/pkg/templates/parser.go:173 +0x266
github.com/projectdiscovery/nuclei/v3/pkg/templates.(*Parser).LoadTemplate(0x24?, {0x34ee2ef841e0, 0x24}, {0x339bb20?, 0x34ee2ce78900}, {0x0, 0x0, 0x0}, {0x47a05b0, 0x34ee2d4d3620})
github.com/projectdiscovery/nuclei/v3/pkg/templates/parser.go:91 +0x8f
github.com/projectdiscovery/nuclei/v3/pkg/catalog/loader.(*Store).LoadTemplatesWithTags.func2({0x34ee2ef841e0, 0x24})
github.com/projectdiscovery/nuclei/v3/pkg/catalog/loader/loader.go:833 +0x17c
created by github.com/projectdiscovery/nuclei/v3/pkg/catalog/loader.(*Store).LoadTemplatesWithTags in goroutine 1
github.com/projectdiscovery/nuclei/v3/pkg/catalog/loader/loader.go:811 +0x4f1
Metadata
Metadata
Assignees
Labels
No labels
Activity
dwisiswant0 commentedon Apr 16, 2026
This belongs to dsl repo. Transferring now.
fix: numeric helper argument coercion (#303)
fix: return errors from helpers that panicked instead