Re: Privacy Violation with SSN

2023-04-11 Thread Colin Alworth
I haven't seen this come up before in a scan like this, thanks for sharing!

This is due to the compiler, but rather than obfuscation, this is due to 
the compiler solving for a constant value rather than doing the math at 
runtime. This same constant appears in the GWT showcase as well, at 
https://samples.gwtproject.org/samples/Showcase/Showcase.html in the 
https://samples.gwtproject.org/samples/Showcase/showcase/deferredjs/5F20F7F6874DB82B437E6EA4319E4E9B/47.cache.js
 
file.

function 
Hmc(a,b,c,d,e,f){Gmc();this.a=e;Th(a,Dwc(b,c,d,e,f));a.db==-1?(Sbc(),Idc(a.hb,13119|(a.hb.__eventBits||0))):(a.db|=13119)}

This is slightly different from yours, and not just in the obfuscation - I 
suspect that you have emulated stack traces enabled, which should allow you 
to check the value of the NWl and RWk constants to confirm - they should be 
the "stack trace element" information, like class+method name, line number 
etc.

In this case, that particular line comes from Image.java's constructor. 
That calls the constructor of the inner class UnclippedState, which has 
these lines:
UnclippedState(Image image) {
  image.replaceElement(Document.get().createImageElement());
  // We are working around an IE race condition that can make the image
  // incorrectly cache itself if the load event is assigned at the same 
time
  // as the image is added to the dom.
  Event.sinkEvents(image.getElement(), Event.ONLOAD);


  // Todo(ecc) this could be more efficient overall.
  image.sinkEvents(Event.ONCLICK | Event.ONDBLCLICK | Event.MOUSEEVENTS 
| Event.ONLOAD
  | Event.ONERROR | Event.ONMOUSEWHEEL | Event.TOUCHEVENTS | 
Event.GESTUREEVENTS);
}

That chained | expression results in the number you're seeing. Then, that 
value is passed to Widget.sinkEvents(), which looks like this:
  @Override
  public void sinkEvents(int eventBitsToAdd) {
if (isOrWasAttached()) {
  super.sinkEvents(eventBitsToAdd);
} else {
  eventsToSink |= eventBitsToAdd;
}
  }


The isOrWasAttached() call is a comparison of a field to -1, and a ternary 
is used instead of an if/else for this:
a.db==-1 ? 
(Sbc(),Idc(a.hb,13119|(a.hb.__eventBits||0))):
(a.db|=13119)

Now it becomes clear that "this.eventsToSink" is "a.db", and 
"eventBitsToAdd" is the constant int 13119.

Links to github source to confirm:
https://github.com/gwtproject/gwt/blob/1671fc2730e23b371962f482830c090b901ea54e/user/src/com/google/gwt/user/client/ui/Image.java#L371-L381
https://github.com/gwtproject/gwt/blob/1671fc2730e23b371962f482830c090b901ea54e/user/src/com/google/gwt/user/client/ui/Widget.java#L238-L245

So - this is not a SSN, but just happens to have the same number of digits. 
On Tuesday, April 11, 2023 at 1:35:58 PM UTC-5 cyclop...@gmail.com wrote:

> We hava a GWT project, and user use WebInspect to scan, then they found a 
> critial issue as below in the file 30.cache.js
> [image: Snap10.jpg]
> [image: ssn.png]
>
> What's the "13119" ?
> Is that bacause GWT obfuscate ?
> Sorry we don't have the source codes of this GWT project (We just have WAR 
> file only)
>
> Many thx.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/562db861-68c1-43d8-81fa-65ac79d00681n%40googlegroups.com.


Re: page navigation

2023-04-11 Thread Colin Alworth
It is difficult to be sure what you are asking, but to navigate 
automatically to a new URL, you might just want 
Window.Location..assign(newUrl) or Window.Location.replace(newUrl), 
depending on exactly what behavior you want to have in your user's browser 
history. Alternatively if you are using activities/places or history 
tokens, you should use that specific api to send the user to the correct 
view.

On Tuesday, April 11, 2023 at 1:35:58 PM UTC-5 KEERTHIKA C wrote:

> after creating the login page on the succesfull login the page has to 
> locate to the another page in gwt give me some sample

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/e133af6b-0013-4c56-97f7-1232862b3914n%40googlegroups.com.


page navigation

2023-04-11 Thread KEERTHIKA C
after creating the login page on the succesfull login the page has to 
locate to the another page in gwt give me some sample

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/65713ea3-a655-4c39-8e81-050878e12084n%40googlegroups.com.