Exploit database

GH-b4b7c965f06514199fc7ac8dd37a0f17

18f-copy/omniauth_login_dot_gov

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2015-9284

5 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files9

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

spec/omniauth/login_dot_gov/userinfo_spec.rb

Ruby · 617 bytes
describe 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