Skip to content

Getting extra issue XSS with Path Traversal #2

@AkashSahai

Description

@AkashSahai

Hi @davewichers,

Hope you are doing well!

I identified an extra issue (XSS) in the OWASP Benchmark (Python) test case under the Path Traversal category.
Test cases:

  1. /benchmark/pathtraver-00/BenchmarkTest00615
  2. /benchmark/pathtraver-00/BenchmarkTest00619

Rule: Path Traversal

this is due to missing escape_for_html in below code for filename.

except IOError as e:
			RESPONSE += (
				f'Problem reading from file \'{fileName}\': '
				f'{escape_for_html(e.strerror)}'
			)
		return RESPONSE

Metadata

Metadata

Assignees

No one assigned

    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