Skip to content

Buffer overflow in svn_read_xml() #3

@wfr

Description

@wfr

There's an exploitable stack buffer overflow in svn.c when handling legacy Subversion repos:

if (sscanf(p, " %*[^\"]\"%[0-9]\"", rev) == 1) {

Steps to reproduce:

  • compile with -fsanitze=address or use valgrind
  • create a subversion repo
  • rm .svn/wc*
  • put the following into .svn/entries
<?xml version="1.0" encoding="utf-8"?>
<wc-entries
   xmlns="http://subversion.tigris.org/xmlns/wc/entries/1.0">
   <entry
     revision="1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890"/>
</wc-entries>

Patch:
wfr/vcprompt@da2825e

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions