avishek 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/lib/vulnerable_gem_code.rb +13 -0
- metadata +43 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 297b8c8f3a7a9bf20b2f0ff41c668ffc2feffac789df1969c7fbb9947aa253e3
|
4
|
+
data.tar.gz: 340691450c1cb1262d1f49595b5c78d060ec2d33397e4167444451253a1cfd27
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c22e69704bab4962187430ad647ba707b2259b228c4e0a931b055eafb931c6ae89364b3e945c6cefa6cc254ae60e268c3ace24bbacd92a7d7e0bb3a7c5277f3a
|
7
|
+
data.tar.gz: a5875c1e1bb13b7aabded9fe4b098c7575ad120f8576c4ed336ab3ca4153e895aee56f77d722bb69dfeae44df33b1f426dfb379d06f3262609d241331937b9e4
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# Set the X-XSS-Protection header to 0
|
2
|
+
response.headers['X-XSS-Protection'] = '0'
|
3
|
+
|
4
|
+
# Check if there is any input
|
5
|
+
if params.key?('name') && !params['name'].nil?
|
6
|
+
# Get the input and remove any '<script>' tags
|
7
|
+
name = params['name'].gsub('<script>', '')
|
8
|
+
|
9
|
+
# Feedback for the end user
|
10
|
+
html = "<pre>Hello #{name}</pre>"
|
11
|
+
end
|
12
|
+
|
13
|
+
|
metadata
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: avishek
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.0.5
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- avishek
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2024-05-27 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: 'A simple XSS Vulnerable Sample COde '
|
14
|
+
email: ''
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- lib/vulnerable_gem_code.rb
|
20
|
+
homepage: https://rubygems.org/gems/hola
|
21
|
+
licenses:
|
22
|
+
- MIT
|
23
|
+
metadata: {}
|
24
|
+
post_install_message:
|
25
|
+
rdoc_options: []
|
26
|
+
require_paths:
|
27
|
+
- lib
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
34
|
+
requirements:
|
35
|
+
- - ">="
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
requirements: []
|
39
|
+
rubygems_version: 3.1.2
|
40
|
+
signing_key:
|
41
|
+
specification_version: 4
|
42
|
+
summary: sample vulnerable!
|
43
|
+
test_files: []
|