Skip to content

[ENHANCEMENT] Templates With Windows Line Endings Fail Signature Check #15754

@pdutton-vc

Description

@pdutton-vc

Is there an existing issue for this?

  • I have searched the existing issues and discussions.

Enhancement Description

In v10.4.1 there are 17 templates that fail the signature check. They all have windows line endings. Some have been around this way for quite some time.

Here is the list: yonyou-nc-lfi
bitrix-detect
bigcommerce-detect
shopify-detect
concrete5-detect
django-detect
oscommerce-detect
blogger-detect
expressionengine-detect
silverstripe-detect
Wix-detect
squarespace-detect
mezzanine-cms-detect
opencart-detect
flask-detect
weebly-detect
unauth-java-message-broker-detect
nodejs-framework-exceptions
aspnet-framework-exceptions

Use Case / Problem

Run the latest nuclei on linux, no arguments needed. See the warning on the second to last line:

nuclei

                     __     _
   ____  __  _______/ /__  (_)
  / __ \/ / / / ___/ / _ \/ /
 / / / / /_/ / /__/ /  __/ /
/_/ /_/\__,_/\___/_/\___/_/   v3.7.1

                projectdiscovery.io

[WRN] Found 2 templates with runtime error (use -validate flag for further examination)
[INF] Current nuclei version: v3.7.1 (latest)
[INF] Current nuclei-templates version: v10.4.1 (latest)
[INF] New templates added in latest release: 76
[INF] Templates loaded for current scan: 9983
[INF] Executing 9966 signed templates from projectdiscovery/nuclei-templates
[WRN] Loading 17 unsigned templates for scan. Use with caution.
[INF] Scan completed in 68.523931ms. No results found.

Run with eid:

nuclei -eid yonyou-nc-lfi,bitrix-detect,bigcommerce-detect,shopify-detect,concre
te5-detect,django-detect,oscommerce-detect,blogger-detect,expressionengine-detect,silverstripe-detect,Wix-detect,squares
pace-detect,mezzanine-cms-detect,opencart-detect,flask-detect,weebly-detect,unauth-java-message-broker-detect,nodejs-fra
mework-exceptions,aspnet-framework-exceptions

                     __     _
   ____  __  _______/ /__  (_)
  / __ \/ / / / ___/ / _ \/ /
 / / / / /_/ / /__/ /  __/ /
/_/ /_/\__,_/\___/_/\___/_/   v3.7.1

                projectdiscovery.io

[WRN] Found 2 templates with runtime error (use -validate flag for further examination)
[INF] Current nuclei version: v3.7.1 (latest)
[INF] Current nuclei-templates version: v10.4.1 (latest)
[INF] New templates added in latest release: 76
[INF] Templates loaded for current scan: 9966
[INF] Executing 9966 signed templates from projectdiscovery/nuclei-templates
[INF] Scan completed in 76.968669ms. No results found.

Proposed Solution

Fix the line endings and re-sign the templates.

Alternatives Considered

No response

Additional Context

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions