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

Unhandled exception in dnsbrute_mutations.finish() #2201

Open
liquidsec opened this issue Jan 20, 2025 · 2 comments
Open

Unhandled exception in dnsbrute_mutations.finish() #2201

liquidsec opened this issue Jan 20, 2025 · 2 comments
Assignees
Labels
bug Something isn't working lightfuzz

Comments

@liquidsec
Copy link
Collaborator

2025-01-20 20:14:50,292 [TRACE] bbot.core.event logger.py:162 Traceback (most recent call last):
  File "/home/redacted
/bbot/bbot/core/helpers/validators.py", line 34, in validate_wrapper
    return func(*args)
           ^^^^^^^^^^^
  File "/home/redacted
/bbot/bbot/core/helpers/validators.py", line 129, in validate_host
    raise ValidationError(f'Invalid hostname: "{host}"')
bbot.errors.ValidationError: Invalid hostname: "dev-s-dm-.redacted.com
"

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/redacted
/bbot/bbot/core/event/base.py", line 1811, in make_event
    data = validators.validate_host(data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/redacted
/bbot/bbot/core/helpers/validators.py", line 36, in validate_wrapper
    raise ValueError(f"Validation failed for {args}, {kwargs}: {e}")
ValueError: Validation failed for ('dev-s-dm-.redacted.com
',), {}: Invalid hostname: "dev-s-dm-.redacted.com
"

2025-01-20 20:14:50,292 [WARNING] bbot.modules.dnsbrute_mutations base.py:1502 Error sanitizing event data "dev-s-dm-.redacted.com
" for type "DNS_NAME": Validation failed for ('dev-s-dm-.redacted.com
',), {}: Invalid hostname: "dev-s-dm-.redacted.com
"
2025-01-20 20:14:50,293 [TRACE] bbot.modules.dnsbrute_mutations logger.py:162 Traceback (most recent call last):
  File "/home/redacted
/bbot/bbot/core/helpers/validators.py", line 34, in validate_wrapper
    return func(*args)
           ^^^^^^^^^^^
  File "/home/redacted
/bbot/bbot/core/helpers/validators.py", line 129, in validate_host
    raise ValidationError(f'Invalid hostname: "{host}"')
bbot.errors.ValidationError: Invalid hostname: "dev-s-dm-.redacted.com
"

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/redacted
/bbot/bbot/core/event/base.py", line 1811, in make_event
    data = validators.validate_host(data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/redacted
/bbot/bbot/core/helpers/validators.py", line 36, in validate_wrapper
    raise ValueError(f"Validation failed for {args}, {kwargs}: {e}")
ValueError: Validation failed for ('dev-s-dm-.redacted.com
',), {}: Invalid hostname: "dev-s-dm-.redacted.com
"

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/redacted
/bbot/bbot/modules/base.py", line 492, in make_event
    event = self.scan.make_event(*args, **kwargs)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/redacted
/bbot/bbot/scanner/scanner.py", line 987, in make_event
    event = make_event(*args, **kwargs)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/redacted
/bbot/bbot/core/event/base.py", line 1814, in make_event
    raise ValidationError(f'Error sanitizing event data "{data}" for type "{event_type}": {e}')
bbot.errors.ValidationError: Error sanitizing event data "dev-s-dm-.redacted.com
" for type "DNS_NAME": Validation failed for ('dev-s-dm-.redacted.com
',), {}: Invalid hostname: "dev-s-dm-.redacted.com
"

2025-01-20 20:14:50,295 [ERROR] bbot.scanner scanner.py:1329 Error in dnsbrute_mutations.finish(): /home/redacted
/bbot/bbot/modules/base.py:536:emit_event(): 'NoneType' object has no attribute 'children'
2025-01-20 20:14:50,295 [TRACE] bbot.scanner logger.py:162 Traceback (most recent call last):
  File "/home/redacted
/bbot/bbot/scanner/scanner.py", line 1306, in _acatch
    yield
  File "/home/redacted
/bbot/bbot/modules/base.py", line 690, in _worker
    await self.finish()
  File "/home/redacted
/bbot/bbot/modules/dnsbrute_mutations.py", line 134, in finish
    await self.emit_event(
  File "/home/redacted
/bbot/bbot/modules/base.py", line 536, in emit_event
    children = event.children
               ^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'children'
@liquidsec liquidsec added the bug Something isn't working label Jan 20, 2025
@TheTechromancer
Copy link
Collaborator

This seems to be from an older version of bbot. Some of the lines in the traceback no longer exist in the codebase, e.g. this one:

/bbot/bbot/modules/base.py", line 536, in emit_event
    children = event.children

@liquidsec
Copy link
Collaborator Author

It was lightfuzz, but I sync with dev almost daily at this point.

When I checked the blame, it looks like it came in during the envelope rework. I'll put a lightfuzz tag on the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lightfuzz
Projects
None yet
Development

No branches or pull requests

2 participants