ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:92443] [Ruby trunk Bug#15803] File.realpath should always return a tainted string
       [not found] <redmine.issue-15803.20190427171242@ruby-lang.org>
@ 2019-04-27 17:12 ` merch-redmine
  2019-04-28  2:17 ` [ruby-core:92454] " nobu
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 4+ messages in thread
From: merch-redmine @ 2019-04-27 17:12 UTC (permalink / raw
  To: ruby-core

Issue #15803 has been reported by jeremyevans0 (Jeremy Evans).

----------------------------------------
Bug #15803: File.realpath should always return a tainted string
https://bugs.ruby-lang.org/issues/15803

* Author: jeremyevans0 (Jeremy Evans)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.7.0dev (2019-04-28 realpath-taint a1b4816759) [x86_64-openbsd]
* Backport: 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: UNKNOWN
----------------------------------------
This string can include elements that were not in either string
passed to File.realpath, even if one of the strings is an
absolute path, due to symlinks:

```ruby
Dir.mkdir('b') unless File.directory?('b')
File.write('b/a', '') unless File.file?('b/a')
File.symlink('b', 'c') unless File.symlink?('c')
path = File.realpath('c/a'.untaint, Dir.pwd.untaint)
path # "/home/testr/ruby/b/a"
path.tainted? # should be true, as 'b' comes from file system
```

---Files--------------------------------
realpath-taint.patch (1.65 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ruby-core:92454] [Ruby trunk Bug#15803] File.realpath should always return a tainted string
       [not found] <redmine.issue-15803.20190427171242@ruby-lang.org>
  2019-04-27 17:12 ` [ruby-core:92443] [Ruby trunk Bug#15803] File.realpath should always return a tainted string merch-redmine
@ 2019-04-28  2:17 ` nobu
  2019-07-25 23:13 ` [ruby-core:93919] [Ruby master " nagachika00
  2019-08-26 14:37 ` [ruby-core:94565] " usa
  3 siblings, 0 replies; 4+ messages in thread
From: nobu @ 2019-04-28  2:17 UTC (permalink / raw
  To: ruby-core

Issue #15803 has been updated by nobu (Nobuyoshi Nakada).

Status changed from Open to Closed

Committed at a15f7dd1fb1148c3d586238ee6907875f2e40379

----------------------------------------
Bug #15803: File.realpath should always return a tainted string
https://bugs.ruby-lang.org/issues/15803#change-77804

* Author: jeremyevans0 (Jeremy Evans)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.7.0dev (2019-04-28 realpath-taint a1b4816759) [x86_64-openbsd]
* Backport: 2.4: REQUIRED, 2.5: REQUIRED, 2.6: REQUIRED
----------------------------------------
This string can include elements that were not in either string
passed to File.realpath, even if one of the strings is an
absolute path, due to symlinks:

```ruby
Dir.mkdir('b') unless File.directory?('b')
File.write('b/a', '') unless File.file?('b/a')
File.symlink('b', 'c') unless File.symlink?('c')
path = File.realpath('c/a'.untaint, Dir.pwd.untaint)
path # "/home/testr/ruby/b/a"
path.tainted? # should be true, as 'b' comes from file system
```

---Files--------------------------------
realpath-taint.patch (1.65 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ruby-core:93919] [Ruby master Bug#15803] File.realpath should always return a tainted string
       [not found] <redmine.issue-15803.20190427171242@ruby-lang.org>
  2019-04-27 17:12 ` [ruby-core:92443] [Ruby trunk Bug#15803] File.realpath should always return a tainted string merch-redmine
  2019-04-28  2:17 ` [ruby-core:92454] " nobu
@ 2019-07-25 23:13 ` nagachika00
  2019-08-26 14:37 ` [ruby-core:94565] " usa
  3 siblings, 0 replies; 4+ messages in thread
From: nagachika00 @ 2019-07-25 23:13 UTC (permalink / raw
  To: ruby-core

Issue #15803 has been updated by nagachika (Tomoyuki Chikanaga).

Backport changed from 2.4: REQUIRED, 2.5: REQUIRED, 2.6: REQUIRED to 2.4: REQUIRED, 2.5: REQUIRED, 2.6: DONE

ruby_2_6 r67713 merged revision(s) a15f7dd1fb1148c3d586238ee6907875f2e40379.

----------------------------------------
Bug #15803: File.realpath should always return a tainted string
https://bugs.ruby-lang.org/issues/15803#change-80043

* Author: jeremyevans0 (Jeremy Evans)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.7.0dev (2019-04-28 realpath-taint a1b4816759) [x86_64-openbsd]
* Backport: 2.4: REQUIRED, 2.5: REQUIRED, 2.6: DONE
----------------------------------------
This string can include elements that were not in either string
passed to File.realpath, even if one of the strings is an
absolute path, due to symlinks:

```ruby
Dir.mkdir('b') unless File.directory?('b')
File.write('b/a', '') unless File.file?('b/a')
File.symlink('b', 'c') unless File.symlink?('c')
path = File.realpath('c/a'.untaint, Dir.pwd.untaint)
path # "/home/testr/ruby/b/a"
path.tainted? # should be true, as 'b' comes from file system
```

---Files--------------------------------
realpath-taint.patch (1.65 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ruby-core:94565] [Ruby master Bug#15803] File.realpath should always return a tainted string
       [not found] <redmine.issue-15803.20190427171242@ruby-lang.org>
                   ` (2 preceding siblings ...)
  2019-07-25 23:13 ` [ruby-core:93919] [Ruby master " nagachika00
@ 2019-08-26 14:37 ` usa
  3 siblings, 0 replies; 4+ messages in thread
From: usa @ 2019-08-26 14:37 UTC (permalink / raw
  To: ruby-core

Issue #15803 has been updated by usa (Usaku NAKAMURA).

Backport changed from 2.4: REQUIRED, 2.5: REQUIRED, 2.6: DONE to 2.4: REQUIRED, 2.5: DONE, 2.6: DONE

ruby_2_5 r67755 merged revision(s) a15f7dd1fb1148c3d586238ee6907875f2e40379.

----------------------------------------
Bug #15803: File.realpath should always return a tainted string
https://bugs.ruby-lang.org/issues/15803#change-81021

* Author: jeremyevans0 (Jeremy Evans)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.7.0dev (2019-04-28 realpath-taint a1b4816759) [x86_64-openbsd]
* Backport: 2.4: REQUIRED, 2.5: DONE, 2.6: DONE
----------------------------------------
This string can include elements that were not in either string
passed to File.realpath, even if one of the strings is an
absolute path, due to symlinks:

```ruby
Dir.mkdir('b') unless File.directory?('b')
File.write('b/a', '') unless File.file?('b/a')
File.symlink('b', 'c') unless File.symlink?('c')
path = File.realpath('c/a'.untaint, Dir.pwd.untaint)
path # "/home/testr/ruby/b/a"
path.tainted? # should be true, as 'b' comes from file system
```

---Files--------------------------------
realpath-taint.patch (1.65 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-08-26 14:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <redmine.issue-15803.20190427171242@ruby-lang.org>
2019-04-27 17:12 ` [ruby-core:92443] [Ruby trunk Bug#15803] File.realpath should always return a tainted string merch-redmine
2019-04-28  2:17 ` [ruby-core:92454] " nobu
2019-07-25 23:13 ` [ruby-core:93919] [Ruby master " nagachika00
2019-08-26 14:37 ` [ruby-core:94565] " usa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).