Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix panic while validating template #5065

Merged
merged 1 commit into from
Apr 18, 2024
Merged

Conversation

RamanaReddy0M
Copy link
Contributor

@RamanaReddy0M RamanaReddy0M commented Apr 17, 2024

Proposed changes

cent-nuclei-templates/test.yaml:

id: cve-2019-3799
info:
  name: Spring Cloud Config Server Path Traversal
  severity: High
  author: pdteam

variables:
  - path: test/pathtraversal/master

requests: 
  - method: GET
    path:
      - "{{BaseURL}}/{{path}}"

TEST:

✗ nuclei -t cent-nuclei-templates/test.yaml -validate

Checklist

  • Pull request is created against the dev branch
  • All checks passed (lint, unit/integration/regression tests etc.) with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

@RamanaReddy0M
Copy link
Contributor Author

Screenshot 2024-04-18 at 12 04 44 AM Note: Exited without panics.

@ehsandeep ehsandeep merged commit a4ba5cd into dev Apr 18, 2024
9 of 12 checks passed
@ehsandeep ehsandeep deleted the issue-4922-panic-conversion-err branch April 18, 2024 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

panic: interface conversion: interface {} is nil, not string [recovered]
3 participants