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

Add Python WSGIServer fingerprint #479

Merged
merged 1 commit into from
Sep 16, 2022

Conversation

mkienow-r7
Copy link
Contributor

@mkienow-r7 mkienow-r7 commented Sep 14, 2022

Description

Adds fingerprint for Python's WSGIServer (wsgiref.simple_server), a simple WSGI HTTP server.

Motivation and Context

Improved coverage

How Has This Been Tested?

  • bundle exec ./bin/recog_verify xml/http_servers.xml
  • rake tests

Types of changes

  • New feature (non-breaking change which adds functionality)

Checklist:

  • I have updated the documentation accordingly (or changes are not required).
  • I have added tests to cover my changes (or new tests are not required).
  • All new and existing tests passed.

@@ -2623,6 +2623,17 @@
<param pos="0" name="service.cpe23" value="cpe:/a:encode:uvicorn:-"/>
</fingerprint>

<fingerprint pattern="^WSGIServer/((?:\d+\.)*\d+)\s*C?Python/((?:\d+\.)*\d+)$">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Matches WSGIServer/0.2 CPython/3.10.5 but I think that's fine.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should match WSGIServer/0.2 CPython/3.10.5 as that's one of the examples. :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, I copied the wrong example. I think it was a similar multiple dot situation.

Copy link
Contributor

@cbarnard-r7 cbarnard-r7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mkienow-r7 mkienow-r7 merged commit 099dd39 into rapid7:main Sep 16, 2022
@mkienow-r7 mkienow-r7 deleted the feature/python-wsgiserver branch September 16, 2022 21:22
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.

None yet

2 participants