Exploit databaseDownload repository ZIP
GH-b4b7c965f06514199fc7ac8dd37a0f17
18f-copy/omniauth_login_dot_gov
Sources for CVE-2015-9284
5 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files9
18f-copy/omniauth_login_dot_govRevision b4d30dc92f26
- ↑..Parent directory
- authorization_spec.rb
- callback_spec.rb
- client_spec.rb
- id_token_request_spec.rb
- id_token_spec.rb
- idp_configuration_spec.rb
- logout_utility_spec.rb
- userinfo_request_spec.rb
- userinfo_spec.rb
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
spec/omniauth/login_dot_gov/userinfo_spec.rb
Ruby · 617 bytesdescribe OmniAuth::LoginDotGov::Userinfo do
let(:email) { '[email protected]' }
subject do
described_class.new(
uuid: 'asdf1234',
email: email
)
end
describe 'to_h' do
context 'when the email is present' do
it 'includes the email as the name in the hash' do
hash = subject.to_h
expect(hash[:name]).to eq(email)
end
end
context 'when the email is not present' do
let(:email) { nil }
it 'includes the uuid as the name in the hash' do
hash = subject.to_h
expect(hash[:name]).to eq('asdf1234')
end
end
end
end