Skip to content

<script>alert('xss')</script> branch XSS attempt #15

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

Open
wants to merge 115 commits into
base: a
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
115 commits
Select commit Hold shift + click to select a range
fa0ccb9
Update README.md
cirosantilli Feb 20, 2014
f5f6dd6
a
cirosantilli Feb 20, 2014
3dd64bc
a
cirosantilli Feb 20, 2014
3d7c4d4
brancha
cirosantilli Mar 7, 2014
378b78c
Merge pull request #6 from cirosantilli/a
cirosantilli Mar 7, 2014
ac3052e
code inside link
cirosantilli Mar 19, 2014
1543b58
Create a.rba
cirosantilli Mar 21, 2014
a0b06c5
Create noext
cirosantilli Mar 21, 2014
266d95a
list
cirosantilli Apr 15, 2014
657c7a3
some newlines
cirosantilli Apr 15, 2014
8619e75
nested list
cirosantilli Apr 15, 2014
90912b8
nest 2
cirosantilli Apr 15, 2014
c3da3f4
nest 3
cirosantilli Apr 15, 2014
57f6ced
nest 4
cirosantilli Apr 15, 2014
f422ae9
nest 5
cirosantilli Apr 15, 2014
0ead37c
a.rdoc
cirosantilli Apr 17, 2014
f5efd60
Update README.md
cirosantilli Apr 19, 2014
18d3515
code in list
cirosantilli Apr 24, 2014
ccdba28
broken ordered lists
cirosantilli Apr 29, 2014
b69503e
Create ordered-list-with-list-bug.md
cirosantilli Apr 29, 2014
acc49e7
pandoc.md
cirosantilli May 14, 2014
df9e45c
big table
cirosantilli May 23, 2014
4ab18a5
1
cirosantilli May 24, 2014
f686a1a
prose
cirosantilli May 24, 2014
6ad615f
a.csv
cirosantilli May 27, 2014
d8c19ba
Merge branch 'master' of github.com:cirosantilli/test
cirosantilli May 27, 2014
3c24db9
a.md multi
cirosantilli May 28, 2014
ac13607
a multi
cirosantilli May 28, 2014
aa547e5
a multi
cirosantilli May 28, 2014
d7f06db
image
cirosantilli May 28, 2014
ab2e9c5
image
cirosantilli May 28, 2014
b22c161
img url
cirosantilli May 28, 2014
bac3036
local
cirosantilli May 28, 2014
cc6ef4d
chaining
cirosantilli Jun 10, 2014
0c4b8a9
000
cirosantilli Jun 19, 2014
9a3d768
Relative autolink.
cirosantilli Jun 21, 2014
1c685e4
Relative link.
cirosantilli Jun 21, 2014
46a7171
autolink example.com.
cirosantilli Jun 21, 2014
22a07d3
remove trailing newlines
cirosantilli Jun 24, 2014
ac44011
edit
cirosantilli Jun 24, 2014
ff34111
Modified file using Dillinger
cirosantilli Jun 24, 2014
4c95469
Modified file using Dillinger
cirosantilli Jun 24, 2014
b3a615e
chinese
cirosantilli Jul 1, 2014
eccb76e
ending in .git
cirosantilli Jul 1, 2014
e818119
asdf
cirosantilli Jul 1, 2014
ef42b9a
end in dot git
cirosantilli Jul 1, 2014
4ea4cc2
utf8
cirosantilli Jul 1, 2014
9db4894
README
cirosantilli Jul 1, 2014
1103787
three dots
cirosantilli Jul 1, 2014
0739bbc
one or two dots
cirosantilli Jul 1, 2014
efce79f
-start-with-slash
cirosantilli Jul 1, 2014
6d790e8
.*
cirosantilli Jul 1, 2014
e57221d
Create hard-tabs.c
cirosantilli Jul 3, 2014
03bb765
diff
cirosantilli Jul 5, 2014
24f8cf1
img
cirosantilli Jul 12, 2014
9cb9d32
asdf
cirosantilli Jul 12, 2014
da4dde8
logo blacck
cirosantilli Jul 12, 2014
2dfd3af
Merge branch 'master' of github.com:cirosantilli/test
cirosantilli Jul 12, 2014
d23b06f
png
cirosantilli Jul 12, 2014
4705fce
diff-last-line
cirosantilli Jul 19, 2014
7cceb3a
diff-last-line-diff
cirosantilli Jul 19, 2014
0966c7b
diff-highlight-adjacent.md
cirosantilli Jul 19, 2014
b2eb608
diff-highlight-adjacent-diff.md
cirosantilli Jul 19, 2014
07e752a
Create diff-visibility.md
cirosantilli Jul 21, 2014
c12f77c
Update diff-visibility.md
cirosantilli Jul 21, 2014
8865cbd
VERSION
cirosantilli Jul 29, 2014
536d81c
Update commit.md
cirosantilli Aug 14, 2014
6a11ce4
.. up
cirosantilli Aug 15, 2014
91ff73d
.. link
cirosantilli Aug 15, 2014
418f817
Executable.
cirosantilli Aug 22, 2014
f0af5dd
Size tests.
cirosantilli Aug 31, 2014
d9ab995
Symlink to outside the repo.
cirosantilli Sep 9, 2014
6432502
Cleanup README, move markdown tests to another file.
cirosantilli Sep 10, 2014
efcd0a3
huge_table
cirosantilli Sep 27, 2014
abf5826
a without carriage
cirosantilli Oct 3, 2014
c1dc132
Preview.
cirosantilli Oct 6, 2014
eb80f55
diff
cirosantilli Oct 6, 2014
0c84b82
diff2
cirosantilli Oct 6, 2014
f66bef4
md preview
cirosantilli Oct 7, 2014
ff810bd
a.atom
cirosantilli Oct 8, 2014
8649cba
3
cirosantilli Oct 8, 2014
d4a24cb
Create a.atom
cirosantilli Oct 8, 2014
f2438ac
aa
cirosantilli Oct 8, 2014
d23afae
evil_stuff
cirosantilli Oct 30, 2014
f9da24c
html
cirosantilli Oct 31, 2014
b03e1fc
merge
cirosantilli Oct 31, 2014
f694320
Link to empty commit.
cirosantilli Nov 1, 2014
8c7b1cd
Relative link to another proejct.
cirosantilli Nov 1, 2014
f4535e4
Link to test deep.
cirosantilli Nov 4, 2014
7c9c432
Whitespace only filenames.
cirosantilli Nov 4, 2014
d79c0f9
hasslash
cirosantilli Nov 6, 2014
dd462ff
md link dir
cirosantilli Nov 6, 2014
e922254
markdup-in-link
cirosantilli Nov 6, 2014
02c7e68
Img in link.
cirosantilli Nov 6, 2014
f4fc921
Markup inside link.
cirosantilli Nov 6, 2014
429ebfd
-r
cirosantilli Nov 6, 2014
e36c719
Empty
cirosantilli Nov 6, 2014
07cf599
Its typo readme.
cirosantilli Nov 11, 2014
d1dffcd
Update links to long filename repos.
cirosantilli Nov 11, 2014
defaceb
SHA that begins with deface.
cirosantilli Nov 13, 2014
e7fe6ca
Issue markdown.
cirosantilli Nov 13, 2014
07dc5a8
no-preview
cirosantilli Nov 17, 2014
65e3a5d
image
cirosantilli Nov 19, 2014
bffbcc9
Image in subdir.
cirosantilli Nov 19, 2014
bfa199b
Clean up a bit.
cirosantilli Nov 20, 2014
b641149
Improve links.
cirosantilli Nov 20, 2014
8c6ef6e
mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm…
cirosantilli Nov 20, 2014
76c0fc9
Wide stuff, 7 char SHA.
cirosantilli Nov 20, 2014
971294f
bitbucket
cirosantilli Nov 21, 2014
d128743
images
cirosantilli Nov 21, 2014
2144a93
svg with js, png with no ext.
cirosantilli Nov 21, 2014
0fd6c43
Link to SF, Google Code, Assembla and remote setup script.
cirosantilli Nov 22, 2014
d751214
XSS branches.
cirosantilli Nov 22, 2014
c10de4b
issue-markdown
cirosantilli Nov 22, 2014
25a3b6c
<script> file
cirosantilli Nov 22, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
My filename only contains a single whitespace!

As of 2014-11, it does not show on the file list at all.

You can reach me with a /%20 on the URL.
11 changes: 11 additions & 0 deletions /README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
My parent directory filename contains exactly 2 spaces!

As of 2014-11, GitHub:

- does not list it on the tree show

- shows up internal files normally with /%20%20/README.md

- relative links in markdown fail and link to the parent directory instead: [a.md](a.md)

- if you try to to view it with /%20%20/, shows the parent directory instead instead of the directory, but the breadcrumbs still correctly show as a subdirectory: ![breadcrumb glitches](breadcrumb-glitches.png)
1 change: 1 addition & 0 deletions /a.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a.md
Binary file added /breadcrumb-glitches.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
image: ubuntu
script:
- echo a
- echo b > drone-artifact.txt
1 change: 1 addition & 0 deletions 3
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3
Empty file added <script>
Empty file.
52 changes: 44 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,51 @@
This repo is only for testing how Github works.
Tests to see how Git web interfaces like GitHub and GitLab work exactly and to detect bugs with them.

# markdown tests
This repository is mirrored at:

# h1
- <https://github.com/cirosantilli/test>
- <https://gitlab.com/cirosantilli/test>
- <https://bitbucket.org/cirosantilli/test>
- <https://sourceforge.net/projects/cirosantilli-test>
- <https://code.google.com/p/cirosantilli-test>
- <https://www.assembla.com/code/cirosantilli-test/git/nodes>

## h2
Tests that are very large will not be included here to keep this repository small:

### h3
- <https://github.com/cirosantilli/test-deep>
- <https://github.com/cirosantilli/test-diff-many-files>
- <https://github.com/cirosantilli/test-pr-many-commits>

#### h4
There are also some tests that could not be included here conveniently:

##### h5
- <https://github.com/cirosantilli/test-empty-commit>
- <https://github.com/cirosantilli/test-empty-subdir>
- <https://github.com/cirosantilli/test-long-filename-256>
- <https://github.com/cirosantilli/test-long-filename-1024>

## 012 UPERCASE underline_hyphen-spaces others%%%end
Other similar repos from other people:

- <https://github.com/joernchen/evil_stuff>

The most interesting files on this repository are:

- [markdown.md](markdown.md)

- [issue-markdown.md](issue-markdown.md): test the markdown on issues

- whitespace filename edge cases:

- [single whitespace filename](%20)
- [double whitespace directory name](%20%20/) and [its README](%20%20/README.md)
- [a b](a b)

Interesting branches and tags:

- [`hasslash/a`](../hasslash/a): branch inside sub-directory

- [`-r`](../-r): branch with forbidden name, and in particular one that may be used for shell injection.

- `<script>alert('xss')</script>` and `<b>a</b>`: XSS and defacement attempts

Create manually with `cp master -- -r` and push with `git push --all`.

- `tag-empty-blob`
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.1.1
2 changes: 0 additions & 2 deletions a

This file was deleted.

3 changes: 3 additions & 0 deletions a b
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
My filename is "a b".

As of 2014-11 I work just fine on GitHub.
1 change: 1 addition & 0 deletions a.atom
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
aa
3 changes: 3 additions & 0 deletions a.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
h1, h2, h3
a, b, c
1, 2, 3
1 change: 1 addition & 0 deletions a.git
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
asdfqwer
1 change: 1 addition & 0 deletions a.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
aa
3 changes: 0 additions & 3 deletions a.md

This file was deleted.

31 changes: 30 additions & 1 deletion a.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
def f(x)
return x + 1
x + 1
end

def g(x)
x + 1
end

def h(x)
x + 1
end

def a
1
end

def b
1
end

def c
1
end

Chaining style:

a.
b.
c

a.b.
c
3 changes: 3 additions & 0 deletions a.rdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
= h1

== h2
1 change: 0 additions & 1 deletion b

This file was deleted.

1 change: 1 addition & 0 deletions brancha
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a
1 change: 1 addition & 0 deletions conflict.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
00
13 changes: 13 additions & 0 deletions d/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# h

[""]()

[#h](#h)

[/#h](/#h)

[../README.md](../README.md)

[README.md#h](README.md#h)

[d/README.md#h](d/README.md#h)
Binary file added d/png.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions deface.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
The SHA of this commit begins with `deface`.

It is used to test conflicts between SHA issue references and regular words.

This commit was generated with:

https://github.com/bradfitz/gitbrute
2 changes: 2 additions & 0 deletions diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This file is named `diff` to try and conflict with the GitLab diff URL.
2
5 changes: 5 additions & 0 deletions diff-highlight-adjacent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
a b c
d E f
g h i
j K l
m N o
4 changes: 4 additions & 0 deletions diff-last-line.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
a b c
d E f
g h i
j K l
1 change: 1 addition & 0 deletions diff-visibility.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
MNMNMNMNMNMNMNMNMNMNMNMNMNMNMNMNMNMNMNNNMNMNMNMNMNMNMNMNMNMNMNMNMNMNMNMNMNMNMNMNMN
1 change: 1 addition & 0 deletions diff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very veri very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very
Empty file added empty
Empty file.
3 changes: 3 additions & 0 deletions executable
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This file has the executable bit on.

It was created to see if web interfaces are showing that information of not.
Binary file added gif.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions hard-tabs.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
2;
}
1 change: 1 addition & 0 deletions html-fragment.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<h1>HTML</h1>
10 changes: 10 additions & 0 deletions html.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>HTML</title>
</head>
<body>
<h1>HTML</h1>
</body>
</html>
3 changes: 3 additions & 0 deletions huge_table.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
| a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a | a |
43 changes: 43 additions & 0 deletions issue-markdown.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
This is the content of the issue used to test markdown rendering on issues of the web UI.

- GitHub: https://github.com/cirosantilli/test/issues/4
- GitLab: https://gitlab.com/cirosantilli/test/issues/1
- BitBucket: https://bitbucket.org/cirosantilli/test/issue/1

# Line breaks at newline

line1
line2

# References

commit SHA reference:

- full URL: https://github.com/cirosantilli/test/commit/429ebfd5c2aebc7debe32347cb7b19869fa4dd29 https://gitlab.com/cirosantilli/test/commit/429ebfd5c2aebc7debe32347cb7b19869fa4dd29 https://bitbucket.org/cirosantilli/test/commit/429ebfd5c2aebc7debe32347cb7b19869fa4dd29
- full SHA: 429ebfd5c2aebc7debe32347cb7b19869fa4dd29
- 7 char SHA: 429ebfd
- 6 char SHA: 429ebf deface
- 4 char SHA: 429e defa

Commit non-SHA reference:

- tag: https://github.com/cirosantilli/test/commit/annotated https://gitlab.com/cirosantilli/test/commit/annotated https://bitbucket.org/cirosantilli/test/commits/annotated
- branch: https://github.com/cirosantilli/test/commit/branch-8 https://gitlab.com/cirosantilli/test/commit/branch-8 https://bitbucket.org/cirosantilli/test/commits/branch-8

MR reference:

- full URL https://github.com/cirosantilli/test/pull/1 https://gitlab.com/cirosantilli/test/merge_requests/1
- hash id: #1

Tag reference: https://github.com/cirosantilli/test/releases/tag/annotated

# Line breaks at newline

line1
line2

# Wide stuff

mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm

|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Binary file added jpg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file added long-commit-msg
Empty file.
Loading