Skip to content

[BUG] Length of variable {{interactsh-url}} computed incorrectly #6390

@darses

Description

@darses

Is there an existing issue for this?

  • I have searched the existing issues.

Current Behavior

The dsl function len("{{interactsh-url}}") returns the length of the literal text {{interactsh-url}}. This makes it impossible to compute the length of a payload that includes an interact.sh domain.

Expected Behavior

Make the DSL function len() return the length on the expanded {{interactsh-url}} URL.

Steps To Reproduce

Relevant log output

Environment

- OS: Fedora Linux
- Nuclei: v3.4.7
- Go: go1.24.4

Anything else?

I see two solutions:

  1. Compute the correct length for the expanded variable, so the entire domein
  2. Provide a second variable {{interact-len}} if computing it dynamically is impossible

Maybe this issue belongs in the projectdiscovery/nuclei repository, but I am not sure on that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugInconsistencies or issues which will cause an issue or problem for users or implementors.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions