| Author | 
		Message | 
	
		 
		Aziz
 
  
 
    
		 | 
		
		 | 
	
	 
		 | 
		
		 | 
	
	
 
		  | 
	
		 
		Sponsor Sponsor 
		 
  
		 | 
		
 | 
	
	 
		  | 
	
				 
		Dan
 
  
 
    
		 | 
		
		 | 
	
	 
		 | 
		
		 | 
	
	
 
		  | 
	
				 
		DemonWasp
 
 
 
    
		 | 
		
		
			
				  Posted: Wed Jul 30, 2008 1:33 pm    Post subject: RE:How much are you worth?  | 
	
				
				 | 
			 
			 
				
  | 
			 
			
				@Dan: Well done, well done. To be honest though, it's not like it's a serious site, so at least this isn't showing up on Paypal or similar.
 
 
I'm apparently worth squat: http://www.howmuchisyoursoulworth.com/results.html?earned_points=71605
 
 
(You can rip out the &radiog##=on nonsense and it doesn't have any effect)
		
 | 
			 
			
				 | 
			 
		  | 
	
	 
		 | 
		
		 | 
	
	
 
		  | 
	
				 
		Tony
 
  
 
    
		 | 
		
		
			
				  Posted: Wed Jul 30, 2008 3:03 pm    Post subject: RE:How much are you worth?  | 
	
				
				 | 
			 
			 
				
  | 
			 
			
				Page source tells me the max I can be worth is
 
Quote: 
 
 <input id="max_points" value="570000" type="hidden" />
 
 
		
 | 
			 
			
				 
Tony's programming blog. DWITE - a programming contest. | 
			 
		  | 
	
	 
		 | 
		
		 | 
	
	
 
		  | 
	
				 
		DemonWasp
 
 
 
    
		 | 
		
		
			
				  Posted: Wed Jul 30, 2008 3:20 pm    Post subject: RE:How much are you worth?  | 
	
				
				 | 
			 
			 
				
  | 
			 
			
				That only applies as long as you don't have Firebug, though, Tony...you can modify the value of hidden inputs (or show them, etc) with the flick of a button.
 
 
I sense someone about to post a screen cap of them being worth a million soul bucks.
		
 | 
			 
			
				 | 
			 
		  | 
	
	 
		 | 
		
		 | 
	
	
 
		  | 
	
				 
		Aziz
 
  
 
    
		 | 
		
		 | 
	
	 
		 | 
		
		 | 
	
	
 
		  | 
	
				 
		Tony
 
  
 
    
		 | 
		
		 | 
	
	 
		 | 
		
		 | 
	
	
 
		  | 
	
				 
		DemonWasp
 
 
 
    
		 | 
		
		
			
				  Posted: Wed Jul 30, 2008 3:36 pm    Post subject: RE:How much are you worth?  | 
	
				
				 | 
			 
			 
				
  | 
			 
			
				Ah, my bad. I thought the max-value hidden input was on the final page, but clearly not. It clearly doesn't even make an attempt to make sure you entered something valid - strings instead of ints? Come on!
 
 
It's great when pages have no validation.
		
 | 
			 
			
				 | 
			 
		  | 
	
	 
		 | 
		
		 | 
	
	
 
		  | 
	
		 
		Sponsor Sponsor 
		 
  
		 | 
		
 | 
	
	 
		  | 
	
				 
		Tony
 
  
 
    
		 | 
		
		
			
				  Posted: Wed Jul 30, 2008 5:16 pm    Post subject: RE:How much are you worth?  | 
	
				
				 | 
			 
			 
				
  | 
			 
			
				Not just strings, but full out HTML. The "number" is rendered by something alone the lines of
 
	  | code: | 	 		  
 
<script>document.write(whatever_url_argument)</script>
 
  | 	  
 
 
Meaning one could inject their own javascript into the page and essentially make that page do whatever they wanted. Which is exactly what Dan has done.
		
 | 
			 
			
				 
Tony's programming blog. DWITE - a programming contest. | 
			 
		  | 
	
	 
		 | 
		
		 | 
	
	
 
		  | 
	
				 
		LaZ3R
 
 
 
    
		 | 
		
		
			
				  Posted: Wed Jul 30, 2008 6:26 pm    Post subject: RE:How much are you worth?  | 
	
				
				 | 
			 
			 
				
  | 
			 
			
				edit: Woops... posted really long link and ruined the page horizontally ... my bad  
		
 | 
			 
			
				 | 
			 
		  | 
	
	 
		 | 
		
		 | 
	
	
 
		  | 
	
				 
		Dan
 
  
 
    
		 | 
		
		
			
				  Posted: Wed Jul 30, 2008 9:11 pm    Post subject: Re: RE:How much are you worth?  | 
	
				
				 | 
			 
			 
				
  | 
			 
			
				DemonWasp @ 30th July 2008, 1:33 pm wrote: @Dan: Well done, well done. To be honest though, it's not like it's a serious site, so at least this isn't showing up on Paypal or similar. 
 
 
Yes and no, althought this page it's self does not have any valuable cookies to steal i could still inject an expolite for old versions of IE and take out a few IE 6 users or just redirect to a shock site and piss people off   Using javascript you coudl also change any content on the page to give peoleop a false idea of what the page aucatly says. And if you are realy smart you might be able to make it make the client atack another site.
		
 | 
			 
			
				| Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!  | 
			 
		  | 
	
	 
		 | 
		
		 | 
	
	
 
		  | 
	
				 
		 |